projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
441b3e4
)
Staging: rts5208: xd: Fixed checkpatch warning
author
Nizam Haider
<nizamhaider786@gmail.com>
Tue, 9 Jun 2015 04:44:55 +0000
(10:14 +0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 13 Jun 2015 00:12:16 +0000
(17:12 -0700)
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>
drivers/staging/rts5208/xd.c
patch
|
blob
|
history
diff --git
a/drivers/staging/rts5208/xd.c
b/drivers/staging/rts5208/xd.c
index
8fd108e
..
10fea7b
100644
(file)
--- 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);