Skip to content

Commit cb8db00

Browse files
bwitherspoonnashif
authored andcommitted
drivers: dac: dac_ad569x: Fix reset error return
The intention here appears to be to return an error. Use an early return to implement this. Signed-off-by: Brett Witherspoon <[email protected]>
1 parent f875390 commit cb8db00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dac/dac_ad569x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ static int ad569x_sw_reset(const struct device *dev)
9999

100100
if (reg != 0) {
101101
LOG_ERR("failed to reset DAC output");
102-
ret = -EIO;
102+
return -EIO;
103103
}
104104

105105
return 0;

0 commit comments

Comments
 (0)