projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
940e698
)
mmc: sdricoh_cs: remove redundant check if len is non-zero
author
Colin Ian King
<
[email protected]
>
Tue, 9 May 2017 15:45:04 +0000
(16:45 +0100)
committer
Ulf Hansson
<
[email protected]
>
Tue, 20 Jun 2017 08:30:08 +0000
(10:30 +0200)
At the end of either of the read or write loops len is always zero
and hence the non-zero check on len and return of -EIO is redundant
and can be removed.
Detected by CoverityScan, CID#114293 ("Logically dead code")
Signed-off-by: Colin Ian King <
[email protected]
>
Signed-off-by: Ulf Hansson <
[email protected]
>
drivers/mmc/host/sdricoh_cs.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/sdricoh_cs.c
b/drivers/mmc/host/sdricoh_cs.c
index 5ff26ab81eb180241c5cccfb58c4073237954e89..70cb00aa79a02bde5969b924a5d73f8aa98439d2 100644
(file)
--- a/
drivers/mmc/host/sdricoh_cs.c
+++ b/
drivers/mmc/host/sdricoh_cs.c
@@
-256,9
+256,6
@@
static int sdricoh_blockio(struct sdricoh_host *host, int read,
}
}
- if (len)
- return -EIO;
-
return 0;
}