radeon: Check an error return instead of assigning it to a dead variable.
authorEric Anholt <eric@anholt.net>
Wed, 2 Nov 2011 21:38:05 +0000 (14:38 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 3 Nov 2011 16:13:46 +0000 (09:13 -0700)
commit9954a93ab77e64b01b95837f90a567df9e8c94df
tree5351930aa2d064abd1783a866367fb598a433ac6
parentca0f515f851f04a3849ac049868825e94382681d
radeon: Check an error return instead of assigning it to a dead variable.

Fixes gcc set-but-unused-variable warning.

Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
src/mesa/drivers/dri/radeon/radeon_common_context.c