Re: [PATCH] usb: Use IS_ERR_OR_NULL() instead of IS_ERR()

From: Greg Kroah-Hartman
Date: Fri Nov 06 2020 - 01:52:30 EST


On Fri, Nov 06, 2020 at 11:31:18AM +0800, Wang Qing wrote:
> __usb_find_phy may return NULL, so we should use IS_ERR_OR_NULL()

Again with the subject line, "USB: phy: ..." And are you sure this
function can return NULL?

thanks,

greg k-h