mwifiex: sdio: don't check for NULL sdio_func
authorBrian Norris <[email protected]>
Fri, 18 Nov 2016 14:00:32 +0000 (19:30 +0530)
committerKalle Valo <[email protected]>
Sat, 19 Nov 2016 07:18:51 +0000 (09:18 +0200)
commit6caf34cb3a92bbd5df6844cb3248c3858797452f
tree208e148d65bc3d21e5fc3aaf106359da90266217
parent58b7033551cd0137f879c5828f84f54ecb0f9090
mwifiex: sdio: don't check for NULL sdio_func

sdio_func is retrieved via container_of() and should never be NULL.
Checking for NULL just makes the logic more confusing than necessary.
Stop doing that.

Signed-off-by: Brian Norris <[email protected]>
Tested-by: Xinming Hu <[email protected]>
Signed-off-by: Amitkumar Karwar <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
drivers/net/wireless/marvell/mwifiex/sdio.c