]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging/rts_pstor: remove braces {} in sd.c (sd_choose_proper_clock)
authorToshiaki Yamane <yamanetoshi@gmail.com>
Fri, 7 Sep 2012 04:24:03 +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 28fc8a23c35e44e0d8f32f18eaabdc244153ed04..40212958fbb64efd57a683d09c73e3b6b073136d 100644 (file)
@@ -622,41 +622,40 @@ static void sd_choose_proper_clock(struct rtsx_chip *chip)
        struct sd_info *sd_card = &(chip->sd_card);
 
        if (CHK_SD_SDR104(sd_card)) {
-               if (chip->asic_code) {
+               if (chip->asic_code)
                        sd_card->sd_clock = chip->asic_sd_sdr104_clk;
-               } else {
+               else
                        sd_card->sd_clock = chip->fpga_sd_sdr104_clk;
-               }
+
        } else if (CHK_SD_DDR50(sd_card)) {
-               if (chip->asic_code) {
+               if (chip->asic_code)
                        sd_card->sd_clock = chip->asic_sd_ddr50_clk;
-               } else {
+               else
                        sd_card->sd_clock = chip->fpga_sd_ddr50_clk;
-               }
+
        } else if (CHK_SD_SDR50(sd_card)) {
-               if (chip->asic_code) {
+               if (chip->asic_code)
                        sd_card->sd_clock = chip->asic_sd_sdr50_clk;
-               } else {
+               else
                        sd_card->sd_clock = chip->fpga_sd_sdr50_clk;
-               }
+
        } else if (CHK_SD_HS(sd_card)) {
-               if (chip->asic_code) {
+               if (chip->asic_code)
                        sd_card->sd_clock = chip->asic_sd_hs_clk;
-               } else {
+               else
                        sd_card->sd_clock = chip->fpga_sd_hs_clk;
-               }
+
        } else if (CHK_MMC_52M(sd_card) || CHK_MMC_DDR52(sd_card)) {
-               if (chip->asic_code) {
+               if (chip->asic_code)
                        sd_card->sd_clock = chip->asic_mmc_52m_clk;
-               } else {
+               else
                        sd_card->sd_clock = chip->fpga_mmc_52m_clk;
-               }
+
        } else if (CHK_MMC_26M(sd_card)) {
-               if (chip->asic_code) {
+               if (chip->asic_code)
                        sd_card->sd_clock = 48;
-               } else {
+               else
                        sd_card->sd_clock = CLK_50;
-               }
        }
 }