]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
mwifiex: pcie: remove unnecessary 'pdev' check
authorBrian Norris <briannorris@chromium.org>
Tue, 25 Jul 2017 01:13:34 +0000 (18:13 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 28 Jul 2017 14:47:54 +0000 (17:47 +0300)
commit43a0c9aea64d50d126bc2d7babecc8a2a2b21e59
treeeac82ff5e8631a7092a04bcbdd040732f76b5c3b
parent2f47150ab3efd338ccdf75bae9f91ec147d6d98b
mwifiex: pcie: remove unnecessary 'pdev' check

'card->dev' is initialized once and is never cleared. Drop the
unnecessary "safety" check, as it simply obscures things, and we don't
do this check everywhere (and therefore it's not really "safe").

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/pcie.c