diff options
| author | 2024-05-17 19:21:50 +0200 | |
|---|---|---|
| committer | 2024-07-14 21:33:32 -0400 | |
| commit | b1c7cd6caaf6209ed9f7df59b61a2ac885eb79b3 (patch) | |
| tree | 82bf2e663efaef8e3bb85aa5061e53d3bf7599e9 /rust/kernel/ssh:/git@git.zx2c4.com/git: | |
| parent | tty: rfcomm: prefer struct_size over open coded arithmetic (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 'rust/kernel/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
