OSDN Git Service

watchdog: tqmx86: Fix a couple IS_ERR() vs NULL bugs
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 4 Jan 2019 06:47:25 +0000 (09:47 +0300)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 7 Jan 2019 09:10:35 +0000 (10:10 +0100)
commit4a22fc534f2f55808c41197cf17d829099032acb
treef8498f90d27ee731595446ffdaaad91892be586c
parent3aa8b8bbc142eeaac89891de584535ceb7fce405
watchdog: tqmx86: Fix a couple IS_ERR() vs NULL bugs

These functions return NULL on error but we accidentally check
for IS_ERR() instead.

Fixes: e3c21e088f89 ("watchdog: tqmx86: Add watchdog driver for the IO controller")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/tqmx86_wdt.c