mlxsw: spectrum_flower: use PTR_ERR_OR_ZERO()
authorYueHaibing <yuehaibing@huawei.com>
Wed, 8 Aug 2018 12:29:08 +0000 (20:29 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Aug 2018 21:14:03 +0000 (14:14 -0700)
commitcd16e5b233aadad5c4652f5466d1505a9f78bade
tree4b06039bfa89d028c274cf093deacc18216598f8
parent63cc5bcc9fc467bbe61cc9ee52509294bdf04c4b
mlxsw: spectrum_flower: use PTR_ERR_OR_ZERO()

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>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c