neofb: kill some redundant code
commit0716a8eab3c8d21b4e36839fa0ee26abbf8e01ef
authorKrzysztof Helt <krzysztof.h1@wp.pl>
Thu, 16 Oct 2008 05:03:32 +0000 (15 22:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Oct 2008 18:21:42 +0000 (16 11:21 -0700)
tree45781955355a69ed8461478e68acd2f17b9841f0
parent4edad7f07048b681b0c633e471ad2532d592e876
neofb: kill some redundant code

Move common code outside if/else or switch/case clauses.

Drop checks done twice inside the neofb_check_var().

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/neofb.c