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:
Brett Witherspoon 2024-07-09 13:34:23 -04:00 committed by Anas Nashif
commit cb8db004d7

View file

@ -99,7 +99,7 @@ static int ad569x_sw_reset(const struct device *dev)
if (reg != 0) {
LOG_ERR("failed to reset DAC output");
ret = -EIO;
return -EIO;
}
return 0;