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 <brett@witherspoon.engineering>
This commit is contained in:
parent
f87539081d
commit
cb8db004d7
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ static int ad569x_sw_reset(const struct device *dev)
|
||||||
|
|
||||||
if (reg != 0) {
|
if (reg != 0) {
|
||||||
LOG_ERR("failed to reset DAC output");
|
LOG_ERR("failed to reset DAC output");
|
||||||
ret = -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue