aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/mvm/utils.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <[email protected]>2019-04-03 15:59:01 +0000
committerLuca Coelho <[email protected]>2019-06-29 07:09:38 +0000
commit8283f4f85c49129ca2c4e682848afc09c7dec949 (patch)
treeb24a070828c360e5285ea25326944a54afd1a292 /drivers/net/wireless/intel/iwlwifi/mvm/utils.c
parentiwlwifi: fw api: support adwell HB default APs number api (diff)
downloadkernel-8283f4f85c49129ca2c4e682848afc09c7dec949.tar.gz
kernel-8283f4f85c49129ca2c4e682848afc09c7dec949.zip
iwlwifi: lib: 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 <[email protected]> Signed-off-by: Luca Coelho <[email protected]>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/utils.c')
0 files changed, 0 insertions, 0 deletions