intel: Decrease nesting level in intelCreateBuffer
authorChad Versace <chad.versace@linux.intel.com>
Mon, 9 Jul 2012 23:51:23 +0000 (16:51 -0700)
committerChad Versace <chad.versace@linux.intel.com>
Wed, 1 Aug 2012 17:33:38 +0000 (10:33 -0700)
commit2b4fbc4d7d3578642ca57b5e45094e66e03626fc
treec7c5b9247099c15ca63ef963645b1ec61e9b7231
parent83fa0842ca0772e9a3493bd7a66f69c458a1739b
intel: Decrease nesting level in intelCreateBuffer

Nearly the whole function body was contained in the 'else' branch. The
'if' branch did one thing: return early with an error. Clean things up by
moving all the code out of the 'else' branch. Decreases max nesting level
from 4 to 3.

Reviewed-by: Paul Berry <stereotype441@gmail.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/intel/intel_screen.c