Gustavo A. R. Silva
8283f4f85c
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 <gustavo@embeddedor.com >
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
2019-06-29 10:09:38 +03:00
..
2019-05-21 10:50:46 +02:00
2019-05-30 11:26:32 -07:00
2019-06-09 13:36:01 -07:00
2019-05-30 11:29:22 -07:00
2019-06-21 09:58:42 -07:00
2019-06-23 11:11:11 -07:00
2019-06-26 14:09:33 -07:00
2019-06-26 13:05:42 -07:00
2019-06-22 16:43:08 -07:00
2019-06-05 17:37:13 +02:00
2019-05-30 11:25:13 -07:00
2019-06-14 19:47:05 -07:00
2019-06-05 17:37:10 +02:00
2019-06-07 09:29:14 -07:00
2019-06-18 09:45:37 -07:00
2019-06-17 20:20:36 -07:00
2019-06-07 11:00:14 -07:00
2019-06-19 17:09:55 +02:00
2019-05-21 10:50:46 +02:00
2019-06-17 13:23:12 -07:00
2019-06-21 09:58:42 -07:00
2019-06-04 20:05:56 -07:00
2019-06-17 20:20:36 -07:00
2019-06-05 17:30:29 +02:00
2019-06-29 10:09:38 +03:00
2019-05-31 14:36:48 -07:00
2019-05-21 10:50:45 +02:00
2019-06-21 09:58:42 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-06-07 11:00:14 -07:00
2019-05-21 10:50:45 +02:00
2019-05-14 15:20:11 -07:00
2019-06-19 17:09:55 +02:00
2019-03-20 11:18:55 -07:00
2019-05-30 11:26:32 -07:00
2019-05-21 10:50:45 +02:00
2018-10-31 21:20:05 -04:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-04-18 11:18:51 +03:00
2019-06-18 10:46:52 -07:00
2019-06-19 11:23:13 -04:00
2019-06-14 19:34:27 -07:00
2019-06-23 13:24:17 -07:00
2019-05-21 10:50:45 +02:00
2019-06-22 08:59:24 -04:00
2019-04-16 21:03:02 -07:00