drv_video_init(): simplify logic
authorWolfgang Denk <wd@denx.de>
Fri, 15 May 2009 08:07:42 +0000 (10:07 +0200)
committerWolfgang Denk <wd@denx.de>
Fri, 12 Jun 2009 18:39:51 +0000 (20:39 +0200)
commitf62f64692ff7f6226ad221d5df6487ea5ef39bdd
tree02c3aea8d22185ec2ed4cd6ca478ea5f3adb5619
parent1699da6297b8c22da16cf85b3c79192f1a6d70ca
drv_video_init(): simplify logic

Simplify nesting of drv_video_init() and use a consistent way of
indicating failure / success. Before, it took me some time to realize
which of the returns was due to an error condition and which of them
indicated success.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
drivers/video/cfb_console.c