staging: mt7621-mmc: remove unnecessary braces from 'if' statements
Remove unnecessary braces from one line 'if' statements. Issues found with checkpatch.pl Signed-off-by: Dafna Hirschfeld <dafna3@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1c4ccab04a
commit
f259e47af3
|
@ -520,9 +520,8 @@ static void msdc_pm(pm_message_t state, void *data)
|
||||||
host->pm_state = state; /* default PMSG_RESUME */
|
host->pm_state = state; /* default PMSG_RESUME */
|
||||||
|
|
||||||
} else if (evt == PM_EVENT_RESUME || evt == PM_EVENT_USER_RESUME) {
|
} else if (evt == PM_EVENT_RESUME || evt == PM_EVENT_USER_RESUME) {
|
||||||
if (!host->suspend) {
|
if (!host->suspend)
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
/* No PM resume when USR suspend */
|
/* No PM resume when USR suspend */
|
||||||
if (evt == PM_EVENT_RESUME && host->pm_state.event == PM_EVENT_USER_SUSPEND) {
|
if (evt == PM_EVENT_RESUME && host->pm_state.event == PM_EVENT_USER_SUSPEND) {
|
||||||
|
@ -967,16 +966,14 @@ done:
|
||||||
//if(host->id==1) {
|
//if(host->id==1) {
|
||||||
if (send_type == SND_CMD) {
|
if (send_type == SND_CMD) {
|
||||||
if (cmd->opcode == MMC_SEND_STATUS) {
|
if (cmd->opcode == MMC_SEND_STATUS) {
|
||||||
if ((cmd->resp[0] & CARD_READY_FOR_DATA) || (CARD_CURRENT_STATE(cmd->resp[0]) != 7)) {
|
if ((cmd->resp[0] & CARD_READY_FOR_DATA) || (CARD_CURRENT_STATE(cmd->resp[0]) != 7))
|
||||||
msdc_gate_clock(host->id);
|
msdc_gate_clock(host->id);
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
msdc_gate_clock(host->id);
|
msdc_gate_clock(host->id);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (read) {
|
if (read)
|
||||||
msdc_gate_clock(host->id);
|
msdc_gate_clock(host->id);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
//}
|
//}
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue