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

staging: sm750fb: remove unnecessary braces

Fixes checkpatch.pl warning:
WARNING: braces {} are not necessary for single statement blocks

Signed-off-by: Juston Li <juston.h.li@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Juston Li and committed by
Greg Kroah-Hartman
7b05cbe8 cebafd8d

+5 -10
+3 -6
drivers/staging/sm750fb/sm750_accel.c
··· 259 259 FIELD_VALUE(0, DE_WINDOW_WIDTH, DESTINATION, (dPitch/Bpp)) | 260 260 FIELD_VALUE(0, DE_WINDOW_WIDTH, SOURCE, (sPitch/Bpp))); /* dpr3c */ 261 261 262 - if (accel->de_wait() != 0) { 262 + if (accel->de_wait() != 0) 263 263 return -1; 264 - } 265 264 266 265 { 267 266 ··· 331 332 ul4BytesPerScan = ulBytesPerScan & ~3; 332 333 ulBytesRemain = ulBytesPerScan & 3; 333 334 334 - if (accel->de_wait() != 0) { 335 + if (accel->de_wait() != 0) 335 336 return -1; 336 - } 337 337 338 338 /* 2D Source Base. 339 339 Use 0 for HOST Blt. ··· 400 402 /* Write MONO data (line by line) to 2D Engine data port */ 401 403 for (i = 0; i < height; i++) { 402 404 /* For each line, send the data in chunks of 4 bytes */ 403 - for (j = 0; j < (ul4BytesPerScan/4); j++) { 405 + for (j = 0; j < (ul4BytesPerScan/4); j++) 404 406 write_dpPort(accel, *(unsigned int *)(pSrcbuf + (j * 4))); 405 - } 406 407 407 408 if (ulBytesRemain) { 408 409 memcpy(ajRemain, pSrcbuf+ul4BytesPerScan, ulBytesRemain);
+2 -4
drivers/staging/sm750fb/sm750_hw.c
··· 188 188 } 189 189 190 190 /* init 2d engine */ 191 - if (!share->accel_off) { 191 + if (!share->accel_off) 192 192 hw_sm750_initAccel(share); 193 - } 194 193 195 194 return 0; 196 195 } ··· 536 537 POKE32(CRT_DISPLAY_CTRL, FIELD_VALUE(PEEK32(CRT_DISPLAY_CTRL), CRT_DISPLAY_CTRL, BLANK, crtdb)); 537 538 } 538 539 539 - if (output->paths & sm750_panel) { 540 + if (output->paths & sm750_panel) 540 541 POKE32(PANEL_DISPLAY_CTRL, FIELD_VALUE(PEEK32(PANEL_DISPLAY_CTRL), PANEL_DISPLAY_CTRL, DATA, pps)); 541 - } 542 542 543 543 return 0; 544 544 }