yangsong8-a1 opened a new pull request, #22589:
URL: https://github.com/apache/nuttx/pull/22589
Summary
- With the nxmutex_lock() retry on EINTR/ECANCELED now in master
(PR #22557), the lock is a blocking wait that is not expected to
fail under normal circumstances, and its return value is not
checked by most callers.
- Remove the now-dead error return checks after nxmutex_lock() in
the i2c, spi, timers, oneshot, capture and pwm character drivers,
and drop the unused error labels they kept alive.
Impact
- No behavior change when the lock succeeds, which is the normal
case; the removed paths were only reachable when nxmutex_lock()
returned an error, which no longer happens on signal interruption
and was not handled meaningfully before anyway.
Testing
- sim:nsh (flat) with CONFIG_I2C, CONFIG_SPI, CONFIG_TIMER,
CONFIG_WATCHDOG, CONFIG_ONESHOT, CONFIG_CAPTURE and CONFIG_PWM
enabled: build and boot to NSH prompt.
- ./tools/checkpatch.sh -c -u -m -g apache/master..HEAD: all checks
pass.
--
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]