drivers/video/tmiofb.c: fix uninitialised return value
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 22 Sep 2009 23:47:54 +0000 (16:47 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 23 Sep 2009 14:39:57 +0000 (07:39 -0700)
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 <dbaryshkov@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/tmiofb.c

index a1eb086..6913fe1 100644 (file)
@@ -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();