watchdog: mtk_wdt: signedness bug in mtk_wdt_start()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 11 Feb 2015 10:26:21 +0000 (13:26 +0300)
committerWim Van Sebroeck <wim@iguana.be>
Fri, 27 Mar 2015 07:47:36 +0000 (08:47 +0100)
commit9ffd906d9a6e50c958bd99971d762a426a12a36a
tree19d40ce869a4ae9d61984bd10dab8516c2c1df0c
parent3c435c1e472ba344ee25f795f4807d4457e61f6c
watchdog: mtk_wdt: signedness bug in mtk_wdt_start()

"ret" should be signed for the error handling to work correctly.  This
doesn't matter much in real life since mtk_wdt_set_timeout() always
succeeds.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/mtk_wdt.c