commit | 356ed043517dbceb646a9353831abde91062a395 | [log] [tgz] |
---|---|---|
author | Wei Yongjun <[email protected]> | Wed Sep 28 23:15:54 2016 +0200 |
committer | Rafael J. Wysocki <[email protected]> | Wed Sep 28 23:15:54 2016 +0200 |
tree | 0bc4785cf97f7a1e99b9efa55ea77181efa136c0 | |
parent | bba6529ea039925ed422696be5d52677bd16643c [diff] |
watchdog: wdat_wdt: fix return value check in wdat_wdt_probe() In case of error, the function devm_ioremap_resource() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun <[email protected]> Acked-by: Mika Westerberg <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>