Commit 2899bb09 authored by Hannes Eder's avatar Hannes Eder Committed by Linus Torvalds

viafb: fix sparse warnings

Fix this sparse warnings:

  drivers/video/via/viafbdev.c:871:3: warning: returning void-valued expression
  drivers/video/via/viafbdev.c:938:3: warning: returning void-valued expression
  drivers/video/via/viafbdev.c:995:3: warning: returning void-valued expression
Signed-off-by: default avatarHannes Eder <hannes@hanneseder.net>
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 68751459
...@@ -870,8 +870,10 @@ static void viafb_fillrect(struct fb_info *info, ...@@ -870,8 +870,10 @@ static void viafb_fillrect(struct fb_info *info,
u32 col = 0, rop = 0; u32 col = 0, rop = 0;
int pitch; int pitch;
if (!viafb_accel) if (!viafb_accel) {
return cfb_fillrect(info, rect); cfb_fillrect(info, rect);
return;
}
if (!rect->width || !rect->height) if (!rect->width || !rect->height)
return; return;
...@@ -937,8 +939,10 @@ static void viafb_copyarea(struct fb_info *info, ...@@ -937,8 +939,10 @@ static void viafb_copyarea(struct fb_info *info,
DEBUG_MSG(KERN_INFO "viafb_copyarea!!\n"); DEBUG_MSG(KERN_INFO "viafb_copyarea!!\n");
if (!viafb_accel) if (!viafb_accel) {
return cfb_copyarea(info, area); cfb_copyarea(info, area);
return;
}
if (!area->width || !area->height) if (!area->width || !area->height)
return; return;
...@@ -994,8 +998,10 @@ static void viafb_imageblit(struct fb_info *info, ...@@ -994,8 +998,10 @@ static void viafb_imageblit(struct fb_info *info,
int i; int i;
int pitch; int pitch;
if (!viafb_accel) if (!viafb_accel) {
return cfb_imageblit(info, image); cfb_imageblit(info, image);
return;
}
udata = (u32 *) image->data; udata = (u32 *) image->data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment