Re: [PATCH] misc: hisi_hikey_usb: use PTR_ERR_OR_ZERO

John Stultz <[email protected]> Mon, 2 Nov 2020 22:11:25 -0800
Newsgroups tech.elisa.lists.linux-safety,org.kernel.vger.linux-kernel
Message-ID <CALAqxLVzsQs6_G9DOTkaBsUa93-97c136mtx7WRPNjBFjfkyAA@mail.gmail.com>
On Mon, Oct 26, 2020 at 11:02 AM Sudip Mukherjee
<[email protected]> 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 <[email protected]>

Thanks for sending this!

Acked-by: John Stultz <[email protected]>

thanks
-john