
16 May
2009
16 May
'09
1:20 a.m.
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 | 69 ++++++++++++++++++------------------------- 1 files changed, 29 insertions(+), 40 deletions(-)
Applied to u-boot-video/next, Thanks!
Note that i also fixed a missing semicolon after 'skip_dev_init = (video_init () == -1)' statement in both patches before applying.
Anatolij