diff options
| author | Fabio M. De Francesco <[email protected]> | 2022-04-02 18:34:39 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-04-04 07:33:49 +0200 |
| commit | c9736770e6c30295dfd1802dde87b7f727d699f7 (patch) | |
| tree | 62adf86837056fd7589d7c71321afa0e58b851f6 /tools/perf/scripts/python | |
| parent | 28f7545d9f08f49d02e02fc1ee556161bfa95a5e (diff) | |
staging: r8188eu: Use the ARRAY_SIZE() macro
Use the ARRAY_SIZE() macro in places where there are open coded
calculations of the size of arrays.
ARRAY_SIZE(arr) makes sure that "arr" is an array, it's safer than
sizeof(arr) / sizeof(arr[0]), and improves readibility.
Detected with the help of Coccinelle.
Signed-off-by: Fabio M. De Francesco <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions