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

David Miller
2018-08-09T21:14:25Z

From: YueHaibing <yuehaibing@huawei.com>
Date: Wed, 8 Aug 2018 20:29:08 +0800

> 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@huawei.com>

Applied.