Skip to content

Commit

Permalink
asiliantfb: add missing return statement
Browse files Browse the repository at this point in the history
Commit 032220b (asiliantfb: fix cmap memory leaks) changed the function
init_asiliant from void to int, resulting in the following compile warning:

  drivers/video/asiliantfb.c: In function `init_asiliant':
  drivers/video/asiliantfb.c:536: warning: control reaches end of non-void function

Fix the warning by returning 0.

Signed-off-by: Vlada Peric <vlada.peric@gmail.com>
Cc: Andres Salomon <dilinger@debian.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Vlada Peric authored and Linus Torvalds committed Apr 21, 2009
1 parent b33ecba commit 44aa417
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/video/asiliantfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ static int __devinit init_asiliant(struct fb_info *p, unsigned long addr)

writeb(0xff, mmio_base + 0x78c);
chips_hw_init(p);
return 0;
}

static int __devinit
Expand Down

0 comments on commit 44aa417

Please sign in to comment.