diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2016-05-18 00:30:41 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2016-06-14 17:17:58 +0300 |
commit | 9b648d788d7841867eea220904dfb77df35f1e08 (patch) | |
tree | 93444ee913365356b3c0d0eb318a717fe3dbcec9 /drivers/net/wireless/rsi | |
parent | d02fb8f14b2d1779870744ff0ab435141491bf5f (diff) | |
download | linux-9b648d788d7841867eea220904dfb77df35f1e08.tar.gz linux-9b648d788d7841867eea220904dfb77df35f1e08.tar.bz2 linux-9b648d788d7841867eea220904dfb77df35f1e08.zip |
rsi: eliminate superfluous NULL check
msg is dereferenced before checking against NULL, e.g.
when assigning pad_bytes.
Remove the superfluous check in function rsi_mgmt_pkt_to_core.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/rsi')
-rw-r--r-- | drivers/net/wireless/rsi/rsi_91x_mgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rsi/rsi_91x_mgmt.c b/drivers/net/wireless/rsi/rsi_91x_mgmt.c index 40658b62d077..35c14cc3f0d2 100644 --- a/drivers/net/wireless/rsi/rsi_91x_mgmt.c +++ b/drivers/net/wireless/rsi/rsi_91x_mgmt.c @@ -398,7 +398,7 @@ static int rsi_mgmt_pkt_to_core(struct rsi_common *common, return -ENOLINK; msg_len -= pad_bytes; - if ((msg_len <= 0) || (!msg)) { + if (msg_len <= 0) { rsi_dbg(MGMT_RX_ZONE, "%s: Invalid rx msg of len = %d\n", __func__, msg_len); |