From: Dan Carpenter Date: Mon, 23 Mar 2015 09:35:51 +0000 (+0300) Subject: mwifiex: remove an unneede NULL check in mwifiex_init_adapter() X-Git-Tag: omap-for-v4.1/fixes-rc1~141^2~95^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d7defb07bbee286537457e5eab534bac01d126a;p=pandora-kernel.git 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 Acked-by: Amitkumar Karwar Signed-off-by: Kalle Valo --- Reading git-diff-tree failed