mwifiex: remove an unneeded NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 8 Nov 2011 03:31:45 +0000 (19:31 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 9 Nov 2011 21:14:12 +0000 (16:14 -0500)
commitfa161cb7aa7da29018f7378ccbab6bb593be008c
tree158bff5e6397ace8b83259dc433a00f631371f8d
parentfba6fe634787bb7ef95fb44682df71b4d4e8cb2d
mwifiex: remove an unneeded NULL check

We dereference adapter in the error handling code so this needed to
be fixed.  This function is always called like:
adapter->if_ops.host_to_card(adapter, ...);
so adapter can never be NULL and I've removed the NULL check.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/pcie.c