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 | |
parent | d02fb8f14b2d1779870744ff0ab435141491bf5f (diff) | |
download | op-kernel-dev-9b648d788d7841867eea220904dfb77df35f1e08.zip op-kernel-dev-9b648d788d7841867eea220904dfb77df35f1e08.tar.gz |
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')
-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 40658b6..35c14cc 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); |