aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2009-01-06 17:42:34 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-06 18:59:27 -0500
commit27ec937c4f455163d6b0ab2df7a7b0161367c067 (patch)
tree219a764ada09d530e61a8820ca30ae28f0f5892a
parent7654532dbeb6cc3fb35b12449f71f1d97e26fa9a (diff)
neofb: fix sparse warnings
Fix this sparse warnings: drivers/video/neofb.c:1456:4: warning: returning void-valued expression drivers/video/neofb.c:1464: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>
-rw-r--r--drivers/video/neofb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/video/neofb.c b/drivers/video/neofb.c
index bfb802d26d5a..588527a254c2 100644
--- a/drivers/video/neofb.c
+++ b/drivers/video/neofb.c
@@ -1453,7 +1453,8 @@ neo2200_imageblit(struct fb_info *info, const struct fb_image *image)
1453 * is less than 16 bits wide. This is due to insufficient 1453 * is less than 16 bits wide. This is due to insufficient
1454 * padding when writing the image. We need to adjust 1454 * padding when writing the image. We need to adjust
1455 * struct fb_pixmap. Not yet done. */ 1455 * struct fb_pixmap. Not yet done. */
1456 return cfb_imageblit(info, image); 1456 cfb_imageblit(info, image);
1457 return;
1457 } 1458 }
1458 bltCntl_flags = NEO_BC0_SRC_MONO; 1459 bltCntl_flags = NEO_BC0_SRC_MONO;
1459 } else if (image->depth == info->var.bits_per_pixel) { 1460 } else if (image->depth == info->var.bits_per_pixel) {
@@ -1461,7 +1462,8 @@ neo2200_imageblit(struct fb_info *info, const struct fb_image *image)
1461 } else { 1462 } else {
1462 /* We don't currently support hardware acceleration if image 1463 /* We don't currently support hardware acceleration if image
1463 * depth is different from display */ 1464 * depth is different from display */
1464 return cfb_imageblit(info, image); 1465 cfb_imageblit(info, image);
1466 return;
1465 } 1467 }
1466 1468
1467 switch (info->var.bits_per_pixel) { 1469 switch (info->var.bits_per_pixel) {