staging/rts_pstor: remove braces {} in sd.c (sd_set_clock_divider)
authorToshiaki Yamane <yamanetoshi@gmail.com>
Fri, 7 Sep 2012 04:24:26 +0000 (13:24 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2012 22:36:03 +0000 (15:36 -0700)
fixed below checkpatch warnings.
-WARNING: braces {} are not necessary for any arm of this statement

Signed-off-by: Toshiaki Yamane <yamanetoshi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts_pstor/sd.c

index 40212958fbb64efd57a683d09c73e3b6b073136d..1af521088e96316b86d9d922caa3fe8ba4ee7a1d 100644 (file)
@@ -668,13 +668,12 @@ static int sd_set_clock_divider(struct rtsx_chip *chip, u8 clk_div)
                val = clk_div;
        } else {
                mask = 0x60;
-               if (clk_div == SD_CLK_DIVIDE_0) {
+               if (clk_div == SD_CLK_DIVIDE_0)
                        val = 0x00;
-               } else if (clk_div == SD_CLK_DIVIDE_128) {
+               else if (clk_div == SD_CLK_DIVIDE_128)
                        val = 0x40;
-               } else if (clk_div == SD_CLK_DIVIDE_256) {
+               else if (clk_div == SD_CLK_DIVIDE_256)
                        val = 0x20;
-               }
        }
 
        RTSX_WRITE_REG(chip, REG_SD_CFG1, mask, val);