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> |
||
|---|---|---|
| .. | ||
| audio | ||
| common | ||
| controller | ||
| crypto | ||
| host | ||
| lib | ||
| mesh | ||
| services | ||
| shell | ||
| CMakeLists.txt | ||
| Kconfig | ||
| Kconfig.adv | ||
| Kconfig.iso | ||
| Kconfig.logging | ||