net/mlx5e: Fix error return code in mlx5e_tc_esw_init()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 10 Feb 2021 07:46:05 +0000 (07:46 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 11 Feb 2021 04:47:14 +0000 (20:47 -0800)
commit2b6c3c1e74e53f370074eb03769c9499aa30c55a
treea08ac43dc09e561026251bd60a943ae8dc332004
parent4782c5d8b972ba26a2558f064601ecff743e0d25
net/mlx5e: Fix error return code in mlx5e_tc_esw_init()

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

This commit also using 0 instead of 'ret' when success since it is
always equal to 0.

Fixes: 8914add2c9e5 ("net/mlx5e: Handle FIB events to update tunnel endpoint device")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c