staging: rts5208: ensure braces on all arms of if stmt
Added braces on if arm of if statement where else arm already needs braces as suggested for clarity in Documentation/CodingStyle (several) Signed-off-by: Nicholas Sim <nicholassimws@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ae25d43c59
commit
649b55b426
|
@ -1928,9 +1928,9 @@ static int sd_tuning_rx(struct rtsx_chip *chip)
|
||||||
tuning_cmd = sd_sdr_tuning_rx_cmd;
|
tuning_cmd = sd_sdr_tuning_rx_cmd;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (CHK_MMC_DDR52(sd_card))
|
if (CHK_MMC_DDR52(sd_card)) {
|
||||||
tuning_cmd = mmc_ddr_tunning_rx_cmd;
|
tuning_cmd = mmc_ddr_tunning_rx_cmd;
|
||||||
else {
|
} else {
|
||||||
rtsx_trace(chip);
|
rtsx_trace(chip);
|
||||||
return STATUS_FAIL;
|
return STATUS_FAIL;
|
||||||
}
|
}
|
||||||
|
@ -2054,9 +2054,9 @@ static int sd_tuning_tx(struct rtsx_chip *chip)
|
||||||
tuning_cmd = sd_sdr_tuning_tx_cmd;
|
tuning_cmd = sd_sdr_tuning_tx_cmd;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (CHK_MMC_DDR52(sd_card))
|
if (CHK_MMC_DDR52(sd_card)) {
|
||||||
tuning_cmd = sd_ddr_tuning_tx_cmd;
|
tuning_cmd = sd_ddr_tuning_tx_cmd;
|
||||||
else {
|
} else {
|
||||||
rtsx_trace(chip);
|
rtsx_trace(chip);
|
||||||
return STATUS_FAIL;
|
return STATUS_FAIL;
|
||||||
}
|
}
|
||||||
|
@ -2678,9 +2678,9 @@ static int reset_sd(struct rtsx_chip *chip)
|
||||||
}
|
}
|
||||||
|
|
||||||
j++;
|
j++;
|
||||||
if (j < 3)
|
if (j < 3) {
|
||||||
goto RTY_SD_RST;
|
goto RTY_SD_RST;
|
||||||
else {
|
} else {
|
||||||
rtsx_trace(chip);
|
rtsx_trace(chip);
|
||||||
return STATUS_FAIL;
|
return STATUS_FAIL;
|
||||||
}
|
}
|
||||||
|
@ -2690,9 +2690,9 @@ static int reset_sd(struct rtsx_chip *chip)
|
||||||
SD_RSP_TYPE_R3, rsp, 5);
|
SD_RSP_TYPE_R3, rsp, 5);
|
||||||
if (retval != STATUS_SUCCESS) {
|
if (retval != STATUS_SUCCESS) {
|
||||||
k++;
|
k++;
|
||||||
if (k < 3)
|
if (k < 3) {
|
||||||
goto RTY_SD_RST;
|
goto RTY_SD_RST;
|
||||||
else {
|
} else {
|
||||||
rtsx_trace(chip);
|
rtsx_trace(chip);
|
||||||
return STATUS_FAIL;
|
return STATUS_FAIL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue