]> asedeno.scripts.mit.edu Git - linux.git/commit
iwlwifi: mvm: remove useless check for mvm->cfg in iwl_parse_nvm_section()
authorLuca Coelho <luciano.coelho@intel.com>
Tue, 15 Aug 2017 16:24:59 +0000 (19:24 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 18 Aug 2017 14:36:42 +0000 (17:36 +0300)
commitee4fe54024f071976120dce71aefe056dfab4eb7
treef792af39573e3767021e547c1e6d14fbf98a9502
parent5bd1d2c1ea9d0f8ca7ad0457c3a24fb91c9ca756
iwlwifi: mvm: remove useless check for mvm->cfg in iwl_parse_nvm_section()

At this point we have already copied the cfg pointer to mvm and we
have been dereferencing this pointer many times before, so it will
never be NULL or we would have crashed.  Remove the useless check.

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