From: Gustavo A. R. Silva Date: Mon, 6 Nov 2017 21:53:21 +0000 (-0600) Subject: rsi: rsi_91x_ps: remove redundant code in str_psstate X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=4775ae7afec62e6ae1bc1f99ab57db2a36b8807e;p=openwrt%2Fstaging%2Fblogic.git rsi: rsi_91x_ps: remove redundant code in str_psstate "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 Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/rsi/rsi_91x_ps.c b/drivers/net/wireless/rsi/rsi_91x_ps.c index 523f5329d2b7..01472fac8b9a 100644 --- 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,