]> git.karo-electronics.de Git - linux-beck.git/commit
mwifiex: remove redundant pdev check in suspend/resume handlers
authorAmitkumar Karwar <akarwar@marvell.com>
Fri, 18 Nov 2016 14:00:27 +0000 (19:30 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 19 Nov 2016 07:18:48 +0000 (09:18 +0200)
commita1beec4b2c6f74365e469df08270a3b847006bec
tree76f24f4f46e2ce48e81ebb409b8cdc1ccdfb9821
parent4a79aa17d53ea8d5fa4acdaed487a786a185936a
mwifiex: remove redundant pdev check in suspend/resume handlers

to_pci_dev() would just do struct offset arithmetic on struct
device to get 'pdev' pointer. We never get NULL pdev pointer.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Tested-by: Xinming Hu <huxm@marvell.com>
Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/pcie.c