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

Commit 67b9fbdf authored by Guenter Roeck's avatar Guenter Roeck Committed by Wim Van Sebroeck
Browse files

watchdog: ts72xx_wdt: Propagate return value from timeout_to_regval



timeout_to_regval() returns a valid error code. Might as well use it.

Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 5412df0b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -192,7 +192,7 @@ static int ts72xx_wdt_open(struct inode *inode, struct file *file)
		dev_err(&wdt->pdev->dev,
			"failed to convert timeout (%d) to register value\n",
			timeout);
		return -EINVAL;
		return regval;
	}

	if (mutex_lock_interruptible(&wdt->lock))