Kaben123 opened a new pull request, #22578:
URL: https://github.com/apache/nuttx/pull/22578
## Summary
MISRA C-2012 Rule 15.5 (single exit point) in `sched/addrenv/addrenv.c`:
- `addrenv_join()`: return `ret` at the end instead of returning early when
`up_addrenv_attach()` fails.
- `addrenv_drop()`: fold the `addrenv == NULL` early return into the
`addrenv_give()` condition.
## Impact
No functional change. No API or Kconfig change.
## Testing
Host: Ubuntu 22.04.5 x86_64, GCC 13.1.0, arm-none-eabi-gcc 13.2.1. Base:
apache/nuttx master 75b4dc85275, apache/nuttx-apps master 9a2c68962.
Builds without new warnings, Make: `qemu-armv7a:knsh`
(`CONFIG_ARCH_ADDRENV=y`),
`sim:nsh`; CMake: `sim:nsh`. `tools/checkpatch.sh -c -u -m -g` passes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]