Re: [PATCH] PM / devfreq: imx: Fix inconsistent IS_ERR and PTR_ERR in imx_bus_init_icc()
From: Markus Elfring
Date: Thu May 07 2020 - 10:33:38 EST
> Fix inconsistent IS_ERR and PTR_ERR in imx_bus_init_icc().
>
> The proper pointer to be passed as argument to PTR_ERR() is
> priv->icc_pdev.
>
> This bug was detected with the help of Coccinelle.
Can the following information be also helpful?
Generated by: scripts/coccinelle/tests/odd_ptr_err.cocci
Regards,
Markus