Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

nvidia: fix sparse warnings

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>

authored by

Hannes Eder and committed by
Linus Torvalds
68751459 6405141f

+8 -4
+8 -4
drivers/video/nvidia/nv_accel.c
··· 300 300 if (info->state != FBINFO_STATE_RUNNING) 301 301 return; 302 302 303 - if (par->lockup) 304 - return cfb_copyarea(info, region); 303 + if (par->lockup) { 304 + cfb_copyarea(info, region); 305 + return; 306 + } 305 307 306 308 NVDmaStart(info, par, BLIT_POINT_SRC, 3); 307 309 NVDmaNext(par, (region->sy << 16) | region->sx); ··· 321 319 if (info->state != FBINFO_STATE_RUNNING) 322 320 return; 323 321 324 - if (par->lockup) 325 - return cfb_fillrect(info, rect); 322 + if (par->lockup) { 323 + cfb_fillrect(info, rect); 324 + return; 325 + } 326 326 327 327 if (info->var.bits_per_pixel == 8) 328 328 color = rect->color;