The current code triggers a false positive from the heuristic "Macro compares unsigned to 0". It's triggered because of a use of `IN_RANGE` that checks against the extremal values of a enum type. This patch replaces the use of `IN_RANGE` with an explicit list of the possible values of the enum. Fixes: https://github.com/zephyrproject-rtos/zephyr/issues/65575 Signed-off-by: Aleksander Wasaznik <aleksander.wasaznik@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| bredr.c | ||
| bt.c | ||
| bt.h | ||
| CMakeLists.txt | ||
| gatt.c | ||
| hci.c | ||
| hci.h | ||
| ias_client.c | ||
| ias.c | ||
| iso.c | ||
| Kconfig | ||
| l2cap.c | ||
| ll.c | ||
| ll.h | ||
| rfcomm.c | ||
| ticker.c | ||