Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

authored by

Guenter Roeck and committed by
Wim Van Sebroeck
67b9fbdf 5412df0b

+1 -1
+1 -1
drivers/watchdog/ts72xx_wdt.c
··· 192 192 dev_err(&wdt->pdev->dev, 193 193 "failed to convert timeout (%d) to register value\n", 194 194 timeout); 195 - return -EINVAL; 195 + return regval; 196 196 } 197 197 198 198 if (mutex_lock_interruptible(&wdt->lock))