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:
f87eba9
)
rsi: rsi_91x_ps: remove redundant code in str_psstate
author
Gustavo A. R. Silva
<garsilva@embeddedor.com>
Mon, 6 Nov 2017 21:53:21 +0000
(15:53 -0600)
committer
Kalle Valo
<kvalo@codeaurora.org>
Fri, 10 Nov 2017 02:36:10 +0000
(
04:36
+0200)
"INVALID_STATE" is already being returned in the default case and this
code cannot be reached.
Addresses-Coverity-ID:
1398384
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rsi/rsi_91x_ps.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/rsi/rsi_91x_ps.c
b/drivers/net/wireless/rsi/rsi_91x_ps.c
index 523f5329d2b736b3e59f801fded2eec6f9c60b81..01472fac8b9aeeee29d08cee707540cc44444dbf 100644
(file)
--- a/
drivers/net/wireless/rsi/rsi_91x_ps.c
+++ b/
drivers/net/wireless/rsi/rsi_91x_ps.c
@@
-36,7
+36,6
@@
char *str_psstate(enum ps_state state)
default:
return "INVALID_STATE";
}
- return "INVALID_STATE";
}
static inline void rsi_modify_ps_state(struct rsi_hw *adapter,