diff options
| author | Mark Bloch <[email protected]> | 2022-03-15 10:45:00 +0000 |
|---|---|---|
| committer | Saeed Mahameed <[email protected]> | 2022-05-02 21:21:14 -0700 |
| commit | c3ae3a9cfe2f3cfdea5a990fa96e23aee343fdb9 (patch) | |
| tree | 75b6eb5d3bb001ab29c66086aa7a3c98617cd8be | |
| parent | d49d63075e0f56f7f05e3ddda59e0484d8a3aa7b (diff) | |
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 <[email protected]>
Reviewed-by: Maor Gottlieb <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
| -rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 1 |
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); |