Re: [PATCH] misc: hisi_hikey_usb: use PTR_ERR_OR_ZERO

From: John Stultz
Date: Tue Nov 03 2020 - 01:11:39 EST


On Mon, Oct 26, 2020 at 11:02 AM Sudip Mukherjee
<sudipm.mukherjee@xxxxxxxxx> wrote:
>
> Coccinelle suggested using PTR_ERR_OR_ZERO() and looking at the code,
> we can use PTR_ERR_OR_ZERO() instead of checking IS_ERR() and then
> doing 'return 0'.
>
> Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@xxxxxxxxx>

Thanks for sending this!

Acked-by: John Stultz <john.stultz@xxxxxxxxxx>

thanks
-john