summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_render.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2015-03-06 02:03:10 +0800
committerChia-I Wu <[email protected]>2015-03-06 02:25:03 +0800
commit4ddd981e407f9e97fcbb862c241f1ce165616fd4 (patch)
tree5127116d96ae302939b00c7ad718796899fc95c1 /src/gallium/drivers/ilo/ilo_render.c
parent70ef171e91582f60a010a4f0ea9f7ff5ba971ab4 (diff)
ilo: add more convenient intel_bo_{ref,unref}()
They both check for NULL and intel_bo_ref() returns the referenced bo. They replace intel_bo_{reference,unreference}().
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_render.c')
-rw-r--r--src/gallium/drivers/ilo/ilo_render.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/ilo/ilo_render.c b/src/gallium/drivers/ilo/ilo_render.c
index c5492562de0..a6614f1508a 100644
--- a/src/gallium/drivers/ilo/ilo_render.c
+++ b/src/gallium/drivers/ilo/ilo_render.c
@@ -154,9 +154,7 @@ ilo_render_create(struct ilo_builder *builder)
void
ilo_render_destroy(struct ilo_render *render)
{
- if (render->workaround_bo)
- intel_bo_unreference(render->workaround_bo);
-
+ intel_bo_unref(render->workaround_bo);
FREE(render);
}