Skip to content

Commit

Permalink
pm3fb: fix sparse warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hannes Eder authored and Linus Torvalds committed Jan 6, 2009
1 parent 2899bb0 commit 7654532
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/video/pm3fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7654532

Please sign in to comment.