Commit 7654532d authored by Hannes Eder's avatar Hannes Eder Committed by Linus Torvalds

pm3fb: fix sparse warning

Fix this sparse warning:

  drivers/video/pm3fb.c:543:3: warning: returning void-valued expression
Signed-off-by: default avatarHannes Eder <hannes@hanneseder.net>
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 2899bb09
...@@ -539,8 +539,10 @@ static void pm3fb_imageblit(struct fb_info *info, const struct fb_image *image) ...@@ -539,8 +539,10 @@ static void pm3fb_imageblit(struct fb_info *info, const struct fb_image *image)
bgx = par->palette[image->bg_color]; bgx = par->palette[image->bg_color];
break; break;
} }
if (image->depth != 1) if (image->depth != 1) {
return cfb_imageblit(info, image); cfb_imageblit(info, image);
return;
}
if (info->var.bits_per_pixel == 8) { if (info->var.bits_per_pixel == 8) {
fgx |= fgx << 8; fgx |= fgx << 8;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment