提交 08929f32 编写于 作者: M Maor Dickman 提交者: Saeed Mahameed

net/mlx5: fs_core, Remove redundant variable err

Local variable "err" is not used so it is safe to remove.
Signed-off-by: NMaor Dickman <maord@nvidia.com>
Reviewed-by: NRoi Dayan <roid@nvidia.com>
Signed-off-by: NSaeed Mahameed <saeedm@nvidia.com>
上级 e3e01c1c
...@@ -1776,7 +1776,6 @@ static int build_match_list(struct match_list *match_head, ...@@ -1776,7 +1776,6 @@ static int build_match_list(struct match_list *match_head,
{ {
struct rhlist_head *tmp, *list; struct rhlist_head *tmp, *list;
struct mlx5_flow_group *g; struct mlx5_flow_group *g;
int err = 0;
rcu_read_lock(); rcu_read_lock();
INIT_LIST_HEAD(&match_head->list); INIT_LIST_HEAD(&match_head->list);
...@@ -1802,7 +1801,7 @@ static int build_match_list(struct match_list *match_head, ...@@ -1802,7 +1801,7 @@ static int build_match_list(struct match_list *match_head,
list_add_tail(&curr_match->list, &match_head->list); list_add_tail(&curr_match->list, &match_head->list);
} }
rcu_read_unlock(); rcu_read_unlock();
return err; return 0;
} }
static u64 matched_fgs_get_version(struct list_head *match_head) static u64 matched_fgs_get_version(struct list_head *match_head)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册