Skip to content

Commit

Permalink
rsi: rsi_91x_ps: remove redundant code in str_psstate
Browse files Browse the repository at this point in the history
"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>
  • Loading branch information
Gustavo A. R. Silva authored and Kalle Valo committed Nov 10, 2017
1 parent f87eba9 commit 4775ae7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/wireless/rsi/rsi_91x_ps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4775ae7

Please sign in to comment.