Skip to content
Commit 445b43d4 authored by Benjamin Björnsson's avatar Benjamin Björnsson Committed by Henrik Brix Andersen
Browse files

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: default avatarBenjamin Björnsson <benjamin.bjornsson@gmail.com>
parent dc257830
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment