rsi: eliminate superfluous NULL check
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 17 May 2016 22:30:41 +0000 (00:30 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 14 Jun 2016 14:17:58 +0000 (17:17 +0300)
commit9b648d788d7841867eea220904dfb77df35f1e08
tree93444ee913365356b3c0d0eb318a717fe3dbcec9
parentd02fb8f14b2d1779870744ff0ab435141491bf5f
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>
drivers/net/wireless/rsi/rsi_91x_mgmt.c