From 5f053bf4ae092df9e5ff6ab38caf9867e6fe46bf Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 22 Sep 2011 17:02:59 -0600 Subject: svga: clean up return values and error codes Previously we were using a hodge podge of int vs. pipe_enum and 0 vs. PIPE_OK. Some functions that always returned PIPE_OK were made void. --- src/gallium/drivers/svga/svga_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/svga/svga_context.c') diff --git a/src/gallium/drivers/svga/svga_context.c b/src/gallium/drivers/svga/svga_context.c index cfb1b9d..91bb60f 100644 --- a/src/gallium/drivers/svga/svga_context.c +++ b/src/gallium/drivers/svga/svga_context.c @@ -159,7 +159,7 @@ struct pipe_context *svga_context_create( struct pipe_screen *screen, goto no_swtnl; ret = svga_emit_initial_state( svga ); - if (ret) + if (ret != PIPE_OK) goto no_state; /* Avoid shortcircuiting state with initial value of zero. -- cgit v1.1