]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
nvidia: fix sparse warnings
authorHannes Eder <hannes@hanneseder.net>
Tue, 6 Jan 2009 22:42:32 +0000 (14:42 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 Jan 2009 23:59:26 +0000 (15:59 -0800)
Fix this sparse warnings:

  drivers/video/nvidia/nv_accel.c:304:3: warning: returning void-valued expression
  drivers/video/nvidia/nv_accel.c:323: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>
drivers/video/nvidia/nv_accel.c

index fa4821c5572b7904a9fbcc21510f3737a4cfe2bd..ad6472a894ea60fa40ae0603dbe5a0448cff20eb 100644 (file)
@@ -300,8 +300,10 @@ void nvidiafb_copyarea(struct fb_info *info, const struct fb_copyarea *region)
        if (info->state != FBINFO_STATE_RUNNING)
                return;
 
-       if (par->lockup)
-               return cfb_copyarea(info, region);
+       if (par->lockup) {
+               cfb_copyarea(info, region);
+               return;
+       }
 
        NVDmaStart(info, par, BLIT_POINT_SRC, 3);
        NVDmaNext(par, (region->sy << 16) | region->sx);
@@ -319,8 +321,10 @@ void nvidiafb_fillrect(struct fb_info *info, const struct fb_fillrect *rect)
        if (info->state != FBINFO_STATE_RUNNING)
                return;
 
-       if (par->lockup)
-               return cfb_fillrect(info, rect);
+       if (par->lockup) {
+               cfb_fillrect(info, rect);
+               return;
+       }
 
        if (info->var.bits_per_pixel == 8)
                color = rect->color;