summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/rbug/rbug_objects.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <[email protected]>2015-12-04 16:47:56 +1100
committerMarek Olšák <[email protected]>2015-12-06 17:10:22 +0100
commit25b3d554c4403b3b63f58cea6f0fc0cf3232a1c0 (patch)
treed74b0ff17a352230911b0ed9298055ef04fd633c /src/gallium/drivers/rbug/rbug_objects.c
parent34782eec31d66e6392390fdf47b1860af08bcde6 (diff)
gallium/drivers: Trivial code-style cleanup
Signed-off-by: Edward O'Callaghan <[email protected]> Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/rbug/rbug_objects.c')
-rw-r--r--src/gallium/drivers/rbug/rbug_objects.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/drivers/rbug/rbug_objects.c b/src/gallium/drivers/rbug/rbug_objects.c
index 25d55a383c2..2aa4e123f87 100644
--- a/src/gallium/drivers/rbug/rbug_objects.c
+++ b/src/gallium/drivers/rbug/rbug_objects.c
@@ -43,13 +43,13 @@ rbug_resource_create(struct rbug_screen *rb_screen,
{
struct rbug_resource *rb_resource;
- if(!resource)
+ if (!resource)
goto error;
assert(resource->screen == rb_screen->screen);
rb_resource = CALLOC_STRUCT(rbug_resource);
- if(!rb_resource)
+ if (!rb_resource)
goto error;
memcpy(&rb_resource->base, resource, sizeof(struct pipe_resource));
@@ -88,13 +88,13 @@ rbug_surface_create(struct rbug_context *rb_context,
{
struct rbug_surface *rb_surface;
- if(!surface)
+ if (!surface)
goto error;
assert(surface->texture == rb_resource->resource);
rb_surface = CALLOC_STRUCT(rbug_surface);
- if(!rb_surface)
+ if (!rb_surface)
goto error;
memcpy(&rb_surface->base, surface, sizeof(struct pipe_surface));
@@ -165,13 +165,13 @@ rbug_transfer_create(struct rbug_context *rb_context,
{
struct rbug_transfer *rb_transfer;
- if(!transfer)
+ if (!transfer)
goto error;
assert(transfer->resource == rb_resource->resource);
rb_transfer = CALLOC_STRUCT(rbug_transfer);
- if(!rb_transfer)
+ if (!rb_transfer)
goto error;
memcpy(&rb_transfer->base, transfer, sizeof(struct pipe_transfer));