iwlwifi: mvm: fix NVM check for 3168 devices
authorLuca Coelho <luciano.coelho@intel.com>
Mon, 25 Nov 2019 11:21:58 +0000 (13:21 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 23 Dec 2019 09:33:04 +0000 (11:33 +0200)
commitb3f20e098293892388d6a0491d6bbb2efb46fbff
tree0c8927db238899f0078b426ee613d8e1e5d0a79e
parent4f565ee2999960d541854389e20b78e7105e3afc
iwlwifi: mvm: fix NVM check for 3168 devices

We had a check on !NVM_EXT and then a check for NVM_SDP in the else
block of this if.  The else block, obviously, could only be reached if
using NVM_EXT, so it would never be NVM_SDP.

Fix that by checking whether the nvm_type is IWL_NVM instead of
checking for !IWL_NVM_EXT to solve this issue.

Reported-by: Stefan Sperling <stsp@stsp.name>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c