Explorar o código

net/mlx5_core: Remove static from local variable

The static is not required and breaks re-entrancy if it will be required.

Fixes: 2530236303d9 ("net/mlx5_core: Flow steering tree initialization")
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Eli Cohen %!s(int64=9) %!d(string=hai) anos
pai
achega
78228cbdeb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/net/ethernet/mellanox/mlx5/core/fs_core.c

+ 1 - 1
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c

@@ -1276,7 +1276,7 @@ struct mlx5_flow_namespace *mlx5_get_flow_namespace(struct mlx5_core_dev *dev,
 {
 {
 	struct mlx5_flow_root_namespace *root_ns = dev->priv.root_ns;
 	struct mlx5_flow_root_namespace *root_ns = dev->priv.root_ns;
 	int prio;
 	int prio;
-	static struct fs_prio *fs_prio;
+	struct fs_prio *fs_prio;
 	struct mlx5_flow_namespace *ns;
 	struct mlx5_flow_namespace *ns;
 
 
 	if (!root_ns)
 	if (!root_ns)