iwlwifi: calculate pointers from out_cmd instead of out_cmd->hdr
authorLuca Coelho <luciano.coelho@intel.com>
Mon, 5 Nov 2018 13:45:54 +0000 (15:45 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 29 Jan 2019 14:10:30 +0000 (16:10 +0200)
commit29cf396f08f6476935c445faddcaf90f2fe2fa87
tree750b1420e3cbeb7e59fbddac09fc5120c1ce6a55
parent94a8d87c47642bc0b99f1c9204b111b5826f1838
iwlwifi: calculate pointers from out_cmd instead of out_cmd->hdr

The out_cmd structure starts with a header, so there's no need to use
&out_cmd->hdr, out_cmd alone is enough.  We use this when calculating
other addresses and klocwork gets confused with that because it thinks
we are trying to access hdr (as an array) beyond its size.

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