summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2019-04-03 11:03:42 -0500
committerLuca Coelho <luciano.coelho@intel.com>2019-06-29 10:09:38 +0300
commite344896723562d1288ba76cc8f232718b9a435f7 (patch)
treee4be43443561d80b0abe405b0d27e8688fe5718c /drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c
parent8283f4f85c49129ca2c4e682848afc09c7dec949 (diff)
downloadlinux-e344896723562d1288ba76cc8f232718b9a435f7.tar.bz2
iwlwifi: d3: Use struct_size() helper
Make use of the struct_size() helper instead of an open-coded version in order to avoid any potential type mistakes, in particular in the context in which this code is being used. So, change the following form: sizeof(*pattern_cmd) + wowlan->n_patterns * sizeof(struct iwlagn_wowlan_pattern) to : struct_size(pattern_cmd, patterns, wowlan->n_patterns) This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c')
0 files changed, 0 insertions, 0 deletions