summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-02-22 23:23:57 -0800
committerVinson Lee <vlee@vmware.com>2010-02-22 23:23:57 -0800
commit6da07e45b3e5cb37b63afafb650569d3d275e608 (patch)
tree497df5b64427401243ec933827c54ec38725b902 /src/gallium/auxiliary
parent902ccfcb40f21e1a5fca2f1bec1cbbabb053d8cf (diff)
downloadexternal_mesa3d-6da07e45b3e5cb37b63afafb650569d3d275e608.zip
external_mesa3d-6da07e45b3e5cb37b63afafb650569d3d275e608.tar.gz
external_mesa3d-6da07e45b3e5cb37b63afafb650569d3d275e608.tar.bz2
draw: Remove dead code.
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/draw/draw_pipe_offset.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pipe_offset.c b/src/gallium/auxiliary/draw/draw_pipe_offset.c
index e829492..8e32194 100644
--- a/src/gallium/auxiliary/draw/draw_pipe_offset.c
+++ b/src/gallium/auxiliary/draw/draw_pipe_offset.c
@@ -161,7 +161,7 @@ struct draw_stage *draw_offset_stage( struct draw_context *draw )
{
struct offset_stage *offset = CALLOC_STRUCT(offset_stage);
if (offset == NULL)
- goto fail;
+ return NULL;
draw_alloc_temp_verts( &offset->stage, 3 );
@@ -176,10 +176,4 @@ struct draw_stage *draw_offset_stage( struct draw_context *draw )
offset->stage.destroy = offset_destroy;
return &offset->stage;
-
- fail:
- if (offset)
- offset->stage.destroy( &offset->stage );
-
- return NULL;
}