summaryrefslogtreecommitdiff
path: root/mm/dmapool_test.c
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 /mm/dmapool_test.c
parent7d2c7ddba6238e6a14cd89ef869878dd22f2a661 (diff)
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 'mm/dmapool_test.c')
0 files changed, 0 insertions, 0 deletions