Commit b1c7cd6c authored by Erick Archer's avatar Erick Archer Committed by Luiz Augusto von Dentz
Browse files

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: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarErick Archer <erick.archer@outlook.com>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent 7d2c7ddb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment