diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2021-03-04 07:59:09 +0300 |
---|---|---|
committer | Wim Van Sebroeck <wim@linux-watchdog.org> | 2021-06-21 09:49:11 +0300 |
commit | 29e85f53fb58b45b9e9276dcdf1f1cb762dd1c9f (patch) | |
tree | acc09cd9bd446b9b01419c46e79db01ecee31423 /drivers/watchdog/orion_wdt.c | |
parent | bc65baf73b68448e79e8ff797522d1976788deb1 (diff) | |
download | linux-29e85f53fb58b45b9e9276dcdf1f1cb762dd1c9f.tar.xz |
watchdog: jz4740: Fix return value check in jz4740_wdt_probe()
In case of error, the function device_node_to_regmap() returns
ERR_PTR() and never returns NULL. The NULL test in the return
value check should be replaced with IS_ERR().
Fixes: 6d532143c915 ("watchdog: jz4740: Use regmap provided by TCU driver")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20210304045909.945799-1-weiyongjun1@huawei.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'drivers/watchdog/orion_wdt.c')
0 files changed, 0 insertions, 0 deletions