From: Andrew Morton Date: Tue, 22 Sep 2009 23:47:54 +0000 (-0700) Subject: drivers/video/tmiofb.c: fix uninitialised return value X-Git-Tag: v2.6.32-rc1~185 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a9672c4b861afcf547bfe2cafeec4ca85a63da67;p=platform%2Fkernel%2Flinux-stable.git drivers/video/tmiofb.c: fix uninitialised return value drivers/video/tmiofb.c: In function 'tmiofb_resume': drivers/video/tmiofb.c:977: warning: 'retval' may be used uninitialized in this function Acked-by: Dmitry Eremin-Solenikov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/tmiofb.c b/drivers/video/tmiofb.c index a1eb086..6913fe1 100644 --- a/drivers/video/tmiofb.c +++ b/drivers/video/tmiofb.c @@ -974,7 +974,7 @@ static int tmiofb_resume(struct platform_device *dev) { struct fb_info *info = platform_get_drvdata(dev); struct mfd_cell *cell = dev->dev.platform_data; - int retval; + int retval = 0; acquire_console_sem();