]> git.karo-electronics.de Git - linux-beck.git/commitdiff
viafbdev: fix compilation warning for unused variable
authorNikanth Karthikesan <nikanth@google.com>
Fri, 10 Jun 2011 08:57:04 +0000 (14:27 +0530)
committerJiri Kosina <jkosina@suse.cz>
Mon, 27 Jun 2011 14:37:31 +0000 (16:37 +0200)
viafbdev: Fix compilation warning for unused variable for #ifdef MODULE
Fix compilation warning when #ifdef MODULE

drivers/video/via/viafbdev.c: In function ‘viafb_init’:
drivers/video/via/viafbdev.c:2019: warning: unused variable ‘r’

Signed-off-by: Nikanth Karthikesan <nikanth@google.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/video/via/viafbdev.c

index cf43c80d27f6e47659d3add9aac2c22c2bc02e36..53aa4430d86ea74cb525a1adc37484ee60c07b07 100644 (file)
@@ -2016,7 +2016,7 @@ static int __init viafb_setup(void)
 int __init viafb_init(void)
 {
        u32 dummy_x, dummy_y;
-       int r;
+       int r = 0;
 
        if (machine_is_olpc())
                /* Apply XO-1.5-specific configuration. */
@@ -2039,7 +2039,7 @@ int __init viafb_init(void)
        printk(KERN_INFO
        "VIA Graphics Integration Chipset framebuffer %d.%d initializing\n",
               VERSION_MAJOR, VERSION_MINOR);
-       return 0;
+       return r;
 }
 
 void __exit viafb_exit(void)