]> git.baikalelectronics.ru Git - kernel.git/commit
rsi_91x: fix structurally dead code
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Thu, 26 Apr 2018 13:01:38 +0000 (08:01 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 30 Apr 2018 10:32:51 +0000 (13:32 +0300)
commitd4c0197ee299b21d36b1c9d7f2426b57a07ee404
tree9e0863ee82caf7fda52cc8571f7cc75490179371
parenta33f6ee2fe02730134b30307b5006ead164460ae
rsi_91x: fix structurally dead code

Function rsi_hal_key_config returns before reaching code at line
922 if (status), hence this code is structurally dead.

Fix this by storing the value returned by rsi_hal_load_key
into _status_ for its further evaluation and use.

Addresses-Coverity-ID: 1468409 ("Structurally dead code")
Fixes: 772a1d82828b ("rsi: roaming enhancements")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rsi/rsi_91x_mac80211.c