Re: [PATCH -next] net: ethernet: ti: Use PTR_ERR_OR_ZERO() to simplify code
From: David Miller
Date: Wed May 06 2020 - 16:44:12 EST
From: Samuel Zou <zou_wei@xxxxxxxxxx>
Date: Wed, 6 May 2020 10:54:58 +0800
> Fixes coccicheck warning:
>
> drivers/net/ethernet/ti/am65-cpts.c:1017:1-3: WARNING: PTR_ERR_OR_ZERO can be used
>
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Signed-off-by: Samuel Zou <zou_wei@xxxxxxxxxx>
Applied to net-next, thank you.