mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
The devm_auxiliary_device_create() returns NULL on error. It never
returns error pointers. Using PTR_ERR_OR_ZERO() here means the function
always returns success. Replace the PTR_ERR_OR_ZERO() call check with
a NULL check.
Fixes: 64581f41f4 ("pmdomain: thead: create auxiliary device for rebooting")
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Icenowy Zheng <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>