misc: hisi_hikey_usb: use PTR_ERR_OR_ZERO
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Mon, 26 Oct 2020 18:00:26 +0000 (18:00 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 07:37:29 +0000 (08:37 +0100)
commitb36773c3912e770e92ba57fa0957c1cf4db6e8a7
tree4d69727260659ab0ffd9db4a1c882db6ae562555
parent3650b228f83adda7e5ee532e2b90429c03f7b9ec
misc: hisi_hikey_usb: use PTR_ERR_OR_ZERO

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'.

Tested-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Link: https://lore.kernel.org/r/20201026180026.3350-1-sudipm.mukherjee@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/hisi_hikey_usb.c