aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorErick Archer <erick.archer@outlook.com>2024-05-17 19:21:50 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2024-07-14 21:33:32 -0400
commitb1c7cd6caaf6209ed9f7df59b61a2ac885eb79b3 (patch)
tree82bf2e663efaef8e3bb85aa5061e53d3bf7599e9 /tools/perf/scripts/python/bin/stackcollapse-report
parenttty: rfcomm: prefer struct_size over open coded arithmetic (diff)
downloadlinux-b1c7cd6caaf6209ed9f7df59b61a2ac885eb79b3.tar.gz
linux-b1c7cd6caaf6209ed9f7df59b61a2ac885eb79b3.zip
tty: rfcomm: prefer array indexing over pointer arithmetic
Refactor the list_for_each_entry() loop of rfcomm_get_dev_list() function to use array indexing instead of pointer arithmetic. This way, the code is more readable and idiomatic. Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Erick Archer <erick.archer@outlook.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions