Skip to content

Commit 08929f3

Browse files
dickmanmaorSaeed Mahameed
authored andcommitted
net/mlx5: fs_core, Remove redundant variable err
Local variable "err" is not used so it is safe to remove. Signed-off-by: Maor Dickman <[email protected]> Reviewed-by: Roi Dayan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent e3e01c1 commit 08929f3

File tree

1 file changed

+1
-2
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+1
-2
lines changed

drivers/net/ethernet/mellanox/mlx5/core/fs_core.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,7 +1776,6 @@ static int build_match_list(struct match_list *match_head,
17761776
{
17771777
struct rhlist_head *tmp, *list;
17781778
struct mlx5_flow_group *g;
1779-
int err = 0;
17801779

17811780
rcu_read_lock();
17821781
INIT_LIST_HEAD(&match_head->list);
@@ -1802,7 +1801,7 @@ static int build_match_list(struct match_list *match_head,
18021801
list_add_tail(&curr_match->list, &match_head->list);
18031802
}
18041803
rcu_read_unlock();
1805-
return err;
1804+
return 0;
18061805
}
18071806

18081807
static u64 matched_fgs_get_version(struct list_head *match_head)

0 commit comments

Comments
 (0)