Re: [PATCH] phy: ocelot-serdes: Fix IS_ERR vs NULL bug in serdes_probe()

From: Markus Elfring
Date: Thu Oct 31 2024 - 12:59:58 EST


> dev_get_regmap() return NULL and never return ERR_PTR().

call can return a null pointer.
It will not return error pointers.


> check NULL to fix it.

Thus apply a null pointer check instead.


Regards,
Markus