Skip to contentSkip to conversation

pm3fb: fix sparse warning

PATCH New Hannes Eder 1 participant 1 message Nov 28, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pm3fb: fix sparse warning

Fix this sparse warning:

drivers/video/pm3fb.c:543:3: warning: returning void-valued expression

---
 drivers/video/pm3fb.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
drivers/video/pm3fb.c +4 -2
index 68089d1..6666f45 100644
@@ -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;
Signature · 1 line
1.5.6.3