Re: [PATCH net-next] mlxsw: spectrum_flower: use PTR_ERR_OR_ZERO()

From: Ido Schimmel
Date: Wed Aug 08 2018 - 11:08:54 EST


On Wed, Aug 08, 2018 at 08:29:08PM +0800, YueHaibing wrote:
> Fix ptr_ret.cocci warnings:
> drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c:543:1-3: WARNING: PTR_ERR_OR_ZERO can be used
>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Reviewed-by: Ido Schimmel <idosch@xxxxxxxxxxxx>

Thanks!