* [PATCH] asiliantfb: add missing return statement
@ 2009-04-10 9:55 Vlada Peric
0 siblings, 0 replies; only message in thread
From: Vlada Peric @ 2009-04-10 9:55 UTC (permalink / raw)
To: linux-kernel; +Cc: dilinger
Commit 032220ba (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 Perić <vlada.peric@gmail.com>
CC: Andres Salomon <dilinger@debian.org>
---
drivers/video/asiliantfb.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/video/asiliantfb.c b/drivers/video/asiliantfb.c
index 1a1f946..9fe90ce 100644
--- a/drivers/video/asiliantfb.c
+++ b/drivers/video/asiliantfb.c
@@ -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
--
1.6.2.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-10 9:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-10 9:55 [PATCH] asiliantfb: add missing return statement Vlada Peric
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®