iwlwifi: pcie: refactor dev_info lookup
authorJohannes Berg <johannes.berg@intel.com>
Sun, 24 Oct 2021 13:54:59 +0000 (16:54 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 28 Oct 2021 09:04:09 +0000 (12:04 +0300)
commit0a1f96d571c841b31d12d3697f149ae1ea3087ea
tree648bdf3ad5a236dc140b7f3a2a7630ff85fe63da
parent636cc16582e28f5c395a4c8d0e13bd70816922d1
iwlwifi: pcie: refactor dev_info lookup

The large condition here is not very clear, refactor the code to
a separate function where we can more easily just check each of
the pieces separately.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20211024165252.ef06ed58a26e.Ie9664a94b157c5781c481118d900ae428c26fdb3@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/drv.c