net/mlx5: fix error return code in mlx5e_tc_nic_init()
authorWang Hai <wanghai38@huawei.com>
Sat, 14 Nov 2020 11:52:23 +0000 (19:52 +0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 17 Nov 2020 19:50:54 +0000 (11:50 -0800)
commit68ec32daf7d50a9f7425f8607a7402c13aa0c587
treedf19fc020aa20245f169f06b604a410a2c5aa912
parent5b8631c7b21ca8bc039f0bc030048973b039e0d2
net/mlx5: fix error return code in mlx5e_tc_nic_init()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: aedd133d17bc ("net/mlx5e: Support CT offload for tc nic flows")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c