]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: don't get address of mvm->fwrt just to dereference as a pointer
authorLuca Coelho <luciano.coelho@intel.com>
Sun, 24 Oct 2021 15:20:29 +0000 (18:20 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 28 Oct 2021 09:04:11 +0000 (12:04 +0300)
commit75d5574faf3364e74aa4c182185d621fa681d329
tree4d7cc5fcc0a305575621148eb4d44165a76aff88
parent7af615d7fe556b9005bca4024206fce58bd8f14f
iwlwifi: mvm: don't get address of mvm->fwrt just to dereference as a pointer

The mvm->fwrt element is not a pointer, but an instance of the
structure, so we should access its elements with a dot-notation
instead of getting the address and dereferencing it as a pointer.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20211024181719.ce6841093681.I09634a0aa845a0256e79c7895154d9ac35bc26be@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/fw.c