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

Markus Elfring Markus.Elfring at web.de
Thu Oct 31 09:59:02 PDT 2024


> 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



More information about the linux-phy mailing list