diff options
author | Leung Timothy Chi King <contact@timothyleung.co> | 2015-07-01 09:44:13 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-07-14 20:18:56 -0700 |
commit | 364b91be262aaf0afc1726be391fbeb7f2b59c52 (patch) | |
tree | ee118c58382f252b5950f21794148794320fbe1a | |
parent | 9fccffbfd9505116c0ab847742aafaa7da55d413 (diff) | |
download | op-kernel-dev-364b91be262aaf0afc1726be391fbeb7f2b59c52.zip op-kernel-dev-364b91be262aaf0afc1726be391fbeb7f2b59c52.tar.gz |
Staging: rts5208: Fix checkpatch warning: else is not generally useful
The following checkpatch warning was fixed:
WARNING: else is not generally useful after a break or return
Signed-off-by: Leung Timothy Chi King <contact@timothyleung.co>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rts5208/sd.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/staging/rts5208/sd.c b/drivers/staging/rts5208/sd.c index a8d657b..cb41579 100644 --- a/drivers/staging/rts5208/sd.c +++ b/drivers/staging/rts5208/sd.c @@ -3520,12 +3520,11 @@ int reset_sd_card(struct rtsx_chip *chip) if (chip->sd_io) { rtsx_trace(chip); return STATUS_FAIL; - } else { - retval = reset_mmc(chip); - if (retval != STATUS_SUCCESS) { - rtsx_trace(chip); - return STATUS_FAIL; - } + } + retval = reset_mmc(chip); + if (retval != STATUS_SUCCESS) { + rtsx_trace(chip); + return STATUS_FAIL; } } } |