summaryrefslogtreecommitdiff
path: root/drivers/staging/rts5208
diff options
context:
space:
mode:
authorNizam Haider <nizamhaider786@gmail.com>2015-06-09 07:44:55 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-06-13 03:12:16 +0300
commit98f196afefa35ace67a9fc54787066134f483641 (patch)
treeedd49086223f39fb3d821468dd3a2dea5409baac /drivers/staging/rts5208
parent441b3e45c2dd12af4b43f8663bbc6602bbc7b183 (diff)
downloadlinux-98f196afefa35ace67a9fc54787066134f483641.tar.xz
Staging: rts5208: xd: Fixed checkpatch warning
Fixed a warning, else is not generally useful after a break or return. Signed-off-by: Nizam Haider <nizamhaider786@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rts5208')
-rw-r--r--drivers/staging/rts5208/xd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/rts5208/xd.c b/drivers/staging/rts5208/xd.c
index 8fd108e50509..10fea7bb8f30 100644
--- a/drivers/staging/rts5208/xd.c
+++ b/drivers/staging/rts5208/xd.c
@@ -1379,9 +1379,8 @@ static int xd_erase_block(struct rtsx_chip *chip, u32 phy_blk)
xd_set_err_code(chip, XD_PRG_ERROR);
rtsx_trace(chip);
return STATUS_FAIL;
- } else {
- xd_set_err_code(chip, XD_ERASE_FAIL);
}
+ xd_set_err_code(chip, XD_ERASE_FAIL);
retval = xd_reset_cmd(chip);
if (retval != STATUS_SUCCESS) {
rtsx_trace(chip);