mwifiex: remove an unneede NULL check in mwifiex_init_adapter()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 23 Mar 2015 09:35:51 +0000 (12:35 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 30 Mar 2015 08:33:42 +0000 (11:33 +0300)
commit2d7defb07bbee286537457e5eab534bac01d126a
tree011b5f6d126b97e7155b0547e71907cfd01e4cff
parent2f5872b60146eadf74b8d349a3596f5aaf687401
mwifiex: remove an unneede NULL check in mwifiex_init_adapter()

"adapter->sleep_cfm" is always non-NULL at this point.  Static checkers
complain that we already dereference it at the start of the function
when we do:

skb_put(adapter->sleep_cfm, sizeof(struct mwifiex_opt_sleep_confirm));

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mwifiex/init.c