summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2009-01-07 01:42:33 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-07 02:59:27 +0300
commit7654532dbeb6cc3fb35b12449f71f1d97e26fa9a (patch)
treec48d4c5192186b30038d71c69d1df9bc2b9600ff
parent2899bb09418786132079bb6495ba8f1ce86eb0c6 (diff)
downloadlinux-7654532dbeb6cc3fb35b12449f71f1d97e26fa9a.tar.xz
pm3fb: fix sparse warning
Fix this sparse warning: drivers/video/pm3fb.c:543:3: warning: returning void-valued expression Signed-off-by: Hannes Eder <hannes@hanneseder.net> Cc: Krzysztof Helt <krzysztof.h1@poczta.fm> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--drivers/video/pm3fb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/video/pm3fb.c b/drivers/video/pm3fb.c
index 68089d1456c2..6666f45a2f8c 100644
--- a/drivers/video/pm3fb.c
+++ b/drivers/video/pm3fb.c
@@ -539,8 +539,10 @@ static void pm3fb_imageblit(struct fb_info *info, const struct fb_image *image)
bgx = par->palette[image->bg_color];
break;
}
- if (image->depth != 1)
- return cfb_imageblit(info, image);
+ if (image->depth != 1) {
+ cfb_imageblit(info, image);
+ return;
+ }
if (info->var.bits_per_pixel == 8) {
fgx |= fgx << 8;