Re: [PATCH] net: macb: Fix passing zero to 'PTR_ERR'

From: Jakub Kicinski
Date: Sat Nov 14 2020 - 15:36:41 EST


On Thu, 12 Nov 2020 22:49:36 +0800 YueHaibing wrote:
> Check PTR_ERR with IS_ERR to fix this.
>
> Fixes: cd5afa91f078 ("net: macb: Add null check for PCLK and HCLK")
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Looks like a cleanup PTR_ERR() should return 0 for NULL AFAICS.

Applied to net-next, thanks!