Skip to content

Commit

Permalink
viafbdev: fix compilation warning for unused variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nikanth Karthikesan authored and Jiri Kosina committed Jun 27, 2011
1 parent d5b55a8 commit 0acd33d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/via/viafbdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand All @@ -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)
Expand Down

0 comments on commit 0acd33d

Please sign in to comment.