From: Toshiaki Yamane Date: Fri, 7 Sep 2012 04:24:26 +0000 (+0900) Subject: staging/rts_pstor: remove braces {} in sd.c (sd_set_clock_divider) X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2d57f965c554d368c6f46d361c431fb5af9de541;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging/rts_pstor: remove braces {} in sd.c (sd_set_clock_divider) fixed below checkpatch warnings. -WARNING: braces {} are not necessary for any arm of this statement Signed-off-by: Toshiaki Yamane Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rts_pstor/sd.c b/drivers/staging/rts_pstor/sd.c index 40212958fbb6..1af521088e96 100644 --- a/drivers/staging/rts_pstor/sd.c +++ b/drivers/staging/rts_pstor/sd.c @@ -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);