]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: sm750fb: remove unnecessary braces
authorJuston Li <juston.h.li@gmail.com>
Wed, 15 Jul 2015 04:14:47 +0000 (21:14 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jul 2015 05:52:52 +0000 (22:52 -0700)
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>
drivers/staging/sm750fb/sm750_accel.c
drivers/staging/sm750fb/sm750_hw.c

index 23be0f774dadb5834404166cc29f710ed884b12b..0f563a9f3d20f3f87e460eb88aed8f2aa7c01037 100644 (file)
@@ -259,9 +259,8 @@ unsigned int rop2)   /* ROP value */
        FIELD_VALUE(0, DE_WINDOW_WIDTH, DESTINATION, (dPitch/Bpp)) |
        FIELD_VALUE(0, DE_WINDOW_WIDTH, SOURCE,      (sPitch/Bpp))); /* dpr3c */
 
-       if (accel->de_wait() != 0) {
+       if (accel->de_wait() != 0)
                return -1;
-       }
 
        {
 
@@ -332,9 +331,8 @@ int hw_imageblit(struct lynx_accel *accel,
        ul4BytesPerScan = ulBytesPerScan & ~3;
        ulBytesRemain = ulBytesPerScan & 3;
 
-       if (accel->de_wait() != 0) {
+       if (accel->de_wait() != 0)
                return -1;
-       }
 
        /* 2D Source Base.
         Use 0 for HOST Blt.
@@ -402,9 +400,8 @@ int hw_imageblit(struct lynx_accel *accel,
        /* Write MONO data (line by line) to 2D Engine data port */
        for (i = 0; i < height; i++) {
                /* For each line, send the data in chunks of 4 bytes */
-               for (j = 0; j < (ul4BytesPerScan/4); j++) {
+               for (j = 0; j < (ul4BytesPerScan/4); j++)
                        write_dpPort(accel, *(unsigned int *)(pSrcbuf + (j * 4)));
-               }
 
                if (ulBytesRemain) {
                        memcpy(ajRemain, pSrcbuf+ul4BytesPerScan, ulBytesRemain);
index fb9c631ff818727abc26baef77ad29e3d1e09f93..d1d6ae745febacd8dbeefe1577e6afdfa23d804b 100644 (file)
@@ -188,9 +188,8 @@ int hw_sm750_inithw(struct lynx_share *share, struct pci_dev *pdev)
        }
 
        /* init 2d engine */
-       if (!share->accel_off) {
+       if (!share->accel_off)
                hw_sm750_initAccel(share);
-       }
 
        return 0;
 }
@@ -537,9 +536,8 @@ int hw_sm750_setBLANK(struct lynxfb_output *output, int blank)
                POKE32(CRT_DISPLAY_CTRL, FIELD_VALUE(PEEK32(CRT_DISPLAY_CTRL), CRT_DISPLAY_CTRL, BLANK, crtdb));
        }
 
-       if (output->paths & sm750_panel) {
+       if (output->paths & sm750_panel)
                POKE32(PANEL_DISPLAY_CTRL, FIELD_VALUE(PEEK32(PANEL_DISPLAY_CTRL), PANEL_DISPLAY_CTRL, DATA, pps));
-       }
 
        return 0;
 }