diff options
author | 2025-08-17 15:06:05 +0530 | |
---|---|---|
committer | 2025-08-18 05:36:29 -0600 | |
commit | 0227af355b50c526bf83ca52d67aef5d102e9b07 (patch) | |
tree | 90a32ddf396cf6911b19e9339ac56f9b98b8eb7e /tools/perf/scripts/python/Perf-Trace-Util/lib | |
parent | block: restore default wbt enablement (diff) | |
download | wireguard-linux-0227af355b50c526bf83ca52d67aef5d102e9b07.tar.xz wireguard-linux-0227af355b50c526bf83ca52d67aef5d102e9b07.zip |
selftests: ublk: Use ARRAY_SIZE() macro to improve code
Use ARRAY_SIZE() macro while calculating size of an array to improve
code readability and reduce potential sizing errors.
Implement this suggestion given by spatch tool by running
coccinelle script - scripts/coccinelle/misc/array_size.cocci
Follow ARRAY_SIZE() macro usage pattern in ublk.c introduced by,
commit ec120093180b9 ("selftests: ublk: fix ublk_find_tgt()")
wherever appropriate to maintain consistency.
Signed-off-by: Akhilesh Patil <akhilesh@ee.iitb.ac.in>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/aKGihYui6/Pcijbk@bhairav-test.ee.iitb.ac.in
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions