Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9849100 authored by Mark Brown's avatar Mark Brown Committed by Wim Van Sebroeck
Browse files

watchdog: Don't overwrite error value in wm831x_wdt_set_timeout()

parent 943ef2ec
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -150,7 +150,7 @@ static int wm831x_wdt_set_timeout(struct watchdog_device *wdt_dev,
		if (wm831x_wdt_cfgs[i].time == timeout)
			break;
	if (i == ARRAY_SIZE(wm831x_wdt_cfgs))
		ret = -EINVAL;
		return -EINVAL;

	ret = wm831x_reg_unlock(wm831x);
	if (ret == 0) {