i965: simplify intel_image_format_lookup()
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 31 Jul 2017 18:45:27 +0000 (19:45 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 2 Aug 2017 19:42:21 +0000 (20:42 +0100)
commitdf8321370204434f2a7ca7cf29be973e060781ed
treeb1d72784daa0c2d8c7ceab6cb5a35792d27cdfc4
parent69fa9e91cbd14259ebff605a3617cf3204298f0f
i965: simplify intel_image_format_lookup()

Drop the local variable and return directly.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/intel_screen.c