Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Hannes Eder and committed by
Linus Torvalds
7654532d 2899bb09

+4 -2
+4 -2
drivers/video/pm3fb.c
··· 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;