power: reset: xgene-reboot: Fix a NULL vs IS_ERR() test
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 20 Feb 2024 09:02:22 +0000 (12:02 +0300)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 21 Feb 2024 20:13:37 +0000 (21:13 +0100)
commit62f4b33bf2b966035420c3e211bfa37f697c4d1f
tree8f33dd56a32f489ca0e1d4ffff0e00acd52b5cee
parenta9b254892ce1a447b06c5019cbf0e9caeb48c138
power: reset: xgene-reboot: Fix a NULL vs IS_ERR() test

The devm_platform_ioremap_resource() function returns error points.  It
never returns NULL.  Update the check accordingly.

Fixes: 7ddfd33c6ee5 ("power: reset: xgene-reboot: Use devm_platform_ioremap_resource() helper")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Acked-by: Andrew Davis <afd@ti.com>
Link: https://lore.kernel.org/r/fe1b90d0-7234-4e03-accc-69a119f6a7eb@moroto.mountain
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/xgene-reboot.c