[U-Boot] [PATCH 1/2] drv_video_init(): simplify logic

Anatolij Gustschin agust at denx.de
Sat May 16 01:20:45 CEST 2009


> 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 at denx.de>
> Cc: Anatolij Gustschin <agust at 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



More information about the U-Boot mailing list