mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
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>
This commit is contained in:
parent
7654532dbe
commit
27ec937c4f
1 changed files with 4 additions and 2 deletions
|
@ -1453,7 +1453,8 @@ neo2200_imageblit(struct fb_info *info, const struct fb_image *image)
|
|||
* is less than 16 bits wide. This is due to insufficient
|
||||
* padding when writing the image. We need to adjust
|
||||
* struct fb_pixmap. Not yet done. */
|
||||
return cfb_imageblit(info, image);
|
||||
cfb_imageblit(info, image);
|
||||
return;
|
||||
}
|
||||
bltCntl_flags = NEO_BC0_SRC_MONO;
|
||||
} else if (image->depth == info->var.bits_per_pixel) {
|
||||
|
@ -1461,7 +1462,8 @@ neo2200_imageblit(struct fb_info *info, const struct fb_image *image)
|
|||
} else {
|
||||
/* We don't currently support hardware acceleration if image
|
||||
* depth is different from display */
|
||||
return cfb_imageblit(info, image);
|
||||
cfb_imageblit(info, image);
|
||||
return;
|
||||
}
|
||||
|
||||
switch (info->var.bits_per_pixel) {
|
||||
|
|
Loading…
Reference in a new issue