zephyr/subsys/bluetooth/host/shell
Pisit Sawangvonganan c120ffb31d bluetooth: shell: avoid multiple strlen calls
Add `len` to store the result of `strlen(addr_arg)` to avoid
multiple calls to `strlen` within the `for-loop` in
`cmd_scan_filter_set_addr`.
While the performance impact may be minimal in a shell context,
storing `strlen(addr_arg)` in `len` ensures a single call,
making the code more predictable and consistent.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2024-11-16 13:50:58 -05:00
..
bt.c bluetooth: shell: avoid multiple strlen calls 2024-11-16 13:50:58 -05:00
bt.h
CMakeLists.txt
cs.c bluetooth: host: CS support for various HCI commands 2024-10-18 14:15:49 +02:00
gatt.c Bluetooth: GATT: Replace magic number 0 with macro for auto ccc 2024-09-26 17:41:24 -04:00
iso.c Bluetooth: Shell: Fix missing RX QoS param and MSE check 2024-10-25 12:55:32 -05:00
l2cap.c