Commit e1fd7cee authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Kalle Valo

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: 4fd6c476 ("rsi: roaming enhancements")
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 60f36637
......@@ -911,7 +911,7 @@ static int rsi_hal_key_config(struct ieee80211_hw *hw,
}
}
return rsi_hal_load_key(adapter->priv,
status = rsi_hal_load_key(adapter->priv,
key->key,
key->keylen,
key_type,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment