diff options
| author | Fabio M. De Francesco <fmdefrancesco@gmail.com> | 2022-04-02 18:34:39 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-04 07:33:49 +0200 |
| commit | c9736770e6c30295dfd1802dde87b7f727d699f7 (patch) | |
| tree | 62adf86837056fd7589d7c71321afa0e58b851f6 /tools/perf/scripts/python/flamegraph.py | |
| parent | 28f7545d9f08f49d02e02fc1ee556161bfa95a5e (diff) | |
| download | linux-c9736770e6c30295dfd1802dde87b7f727d699f7.tar.gz linux-c9736770e6c30295dfd1802dde87b7f727d699f7.zip | |
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 <fmdefrancesco@gmail.com>
Link: https://lore.kernel.org/r/20220402163439.20457-1-fmdefrancesco@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
