summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Bloch <mbloch@nvidia.com>2022-03-15 13:45:00 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2022-05-03 07:21:14 +0300
commitc3ae3a9cfe2f3cfdea5a990fa96e23aee343fdb9 (patch)
tree75b6eb5d3bb001ab29c66086aa7a3c98617cd8be
parentd49d63075e0f56f7f05e3ddda59e0484d8a3aa7b (diff)
downloadlinux-c3ae3a9cfe2f3cfdea5a990fa96e23aee343fdb9.tar.xz
net/mlx5: fs, jump to exit point and don't fall through
For code clarity and to prevent future bugs make sure to jump to the exit point once done handling that specific type. This aligns the code with the rest logic in the function. Signed-off-by: Mark Bloch <mbloch@nvidia.com> Reviewed-by: Maor Gottlieb <maorg@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/fs_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
index ae83962fc5fc..e282d80f1fd2 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
@@ -570,6 +570,7 @@ static void del_sw_hw_rule(struct fs_node *node)
--fte->dests_size;
fte->modify_mask |=
BIT(MLX5_SET_FTE_MODIFY_ENABLE_MASK_DESTINATION_LIST);
+ goto out;
}
out:
kfree(rule);