-
由 weiyongjun (A) 提交于
In case of error, the function mlx5_fc_create() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Fixes: 3b3233fb ("IB/mlx5: Add flow counters binding support") Signed-off-by: NWei Yongjun <weiyongjun1@huawei.com> Acked-by: NLeon Romanovsky <leonro@mellanox.com> Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
e31abf76