projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3e01c1
)
net/mlx5: fs_core, Remove redundant variable err
author
Maor Dickman
<maord@nvidia.com>
Mon, 23 Jan 2023 07:28:19 +0000
(09:28 +0200)
committer
Saeed Mahameed
<saeedm@nvidia.com>
Wed, 8 Feb 2023 00:29:55 +0000
(16:29 -0800)
Local variable "err" is not used so it is safe to remove.
Signed-off-by: Maor Dickman <maord@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
index dd43a940499b2db08b32fa3d36d8cb005319f826..fad479df12e4f6d2823bc07b7c9a597389e81940 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
+++ b/
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
@@
-1776,7
+1776,6
@@
static int build_match_list(struct match_list *match_head,
{
struct rhlist_head *tmp, *list;
struct mlx5_flow_group *g;
- int err = 0;
rcu_read_lock();
INIT_LIST_HEAD(&match_head->list);
@@
-1802,7
+1801,7
@@
static int build_match_list(struct match_list *match_head,
list_add_tail(&curr_match->list, &match_head->list);
}
rcu_read_unlock();
- return
err
;
+ return
0
;
}
static u64 matched_fgs_get_version(struct list_head *match_head)