From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Sat, 16 May 2009 01:20:45 +0200 Subject: [U-Boot] [PATCH 1/2] drv_video_init(): simplify logic In-Reply-To: <1242374863-11781-2-git-send-email-wd@denx.de> References: <1242369514-24243-1-git-send-email-sr@denx.de> <1242374863-11781-2-git-send-email-wd@denx.de> Message-ID: <4A0DF8CD.9030504@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > 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 > Cc: Anatolij Gustschin > --- > 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