提交 c3ae3a9c 编写于 作者: M Mark Bloch 提交者: Saeed Mahameed

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: NMark Bloch <mbloch@nvidia.com>
Reviewed-by: NMaor Gottlieb <maorg@nvidia.com>
Signed-off-by: NSaeed Mahameed <saeedm@nvidia.com>
上级 d49d6307
...@@ -570,6 +570,7 @@ static void del_sw_hw_rule(struct fs_node *node) ...@@ -570,6 +570,7 @@ static void del_sw_hw_rule(struct fs_node *node)
--fte->dests_size; --fte->dests_size;
fte->modify_mask |= fte->modify_mask |=
BIT(MLX5_SET_FTE_MODIFY_ENABLE_MASK_DESTINATION_LIST); BIT(MLX5_SET_FTE_MODIFY_ENABLE_MASK_DESTINATION_LIST);
goto out;
} }
out: out:
kfree(rule); kfree(rule);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册