Skip to content
Commit 11a9096c authored by Benjamin Cabé's avatar Benjamin Cabé Committed by Benjamin Cabé
Browse files

drivers: rtc: ds3231: fix uninitialized variable error



Until recently this driver wasn't built in CI. Now that it is, clang
is complaining about `err` possibly being uninitialized in case
`bitmask` is 255. Fix it by actually removing code that was
unnecessarily trying to access the uninitialized variable.

Signed-off-by: default avatarBenjamin Cabé <benjamin@zephyrproject.org>
parent 82319414
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment