sensor: tsl2540: add missing return value check
This commit adds a missing return value check. Since the I2C write
failed we release the semaphore and returning immediatly instead of
using goto exit.
Fixes #65352
Signed-off-by:
Benjamin Björnsson <benjamin.bjornsson@gmail.com>
Loading
Please sign in to comment