Commit 7654532dbeb6cc3fb35b12449f71f1d97e26fa9a

Authored by Hannes Eder
Committed by Linus Torvalds
1 parent 2899bb0941

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>

Showing 1 changed file with 4 additions and 2 deletions Side-by-side Diff

drivers/video/pm3fb.c
... ... @@ -539,8 +539,10 @@
539 539 bgx = par->palette[image->bg_color];
540 540 break;
541 541 }
542   - if (image->depth != 1)
543   - return cfb_imageblit(info, image);
  542 + if (image->depth != 1) {
  543 + cfb_imageblit(info, image);
  544 + return;
  545 + }
544 546  
545 547 if (info->var.bits_per_pixel == 8) {
546 548 fgx |= fgx << 8;