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

i810: fix sparse warnings

Fix this sparse warnings:

drivers/video/i810/i810_accel.c:305:3: warning: returning void-valued expression
drivers/video/i810/i810_accel.c:331:3: warning: returning void-valued expression
drivers/video/i810/i810_accel.c:370: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
4fa34cd0 27ec937c

+12 -6
+12 -6
drivers/video/i810/i810_accel.c
··· 301 301 u32 dx, dy, width, height, dest, rop = 0, color = 0; 302 302 303 303 if (!info->var.accel_flags || par->dev_flags & LOCKUP || 304 - par->depth == 4) 305 - return cfb_fillrect(info, rect); 304 + par->depth == 4) { 305 + cfb_fillrect(info, rect); 306 + return; 307 + } 306 308 307 309 if (par->depth == 1) 308 310 color = rect->color; ··· 329 327 u32 sx, sy, dx, dy, pitch, width, height, src, dest, xdir; 330 328 331 329 if (!info->var.accel_flags || par->dev_flags & LOCKUP || 332 - par->depth == 4) 333 - return cfb_copyarea(info, region); 330 + par->depth == 4) { 331 + cfb_copyarea(info, region); 332 + return; 333 + } 334 334 335 335 dx = region->dx * par->depth; 336 336 sx = region->sx * par->depth; ··· 370 366 u32 fg = 0, bg = 0, size, dst; 371 367 372 368 if (!info->var.accel_flags || par->dev_flags & LOCKUP || 373 - par->depth == 4 || image->depth != 1) 374 - return cfb_imageblit(info, image); 369 + par->depth == 4 || image->depth != 1) { 370 + cfb_imageblit(info, image); 371 + return; 372 + } 375 373 376 374 switch (info->var.bits_per_pixel) { 377 375 case 8: