aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/proc.py
diff options
context:
space:
mode:
authorWei Yongjun <[email protected]>2021-03-04 04:59:09 +0000
committerWim Van Sebroeck <[email protected]>2021-06-21 08:49:11 +0200
commit29e85f53fb58b45b9e9276dcdf1f1cb762dd1c9f (patch)
treeacc09cd9bd446b9b01419c46e79db01ecee31423 /scripts/gdb/linux/proc.py
parentbc65baf73b68448e79e8ff797522d1976788deb1 (diff)
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 <[email protected]> Signed-off-by: Wei Yongjun <[email protected]> Acked-by: Paul Cercueil <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions