Răsfoiți Sursa

net/mlx5: Avoid setting unused var when modifying vport node GUID

GCC complains on unused-but-set-variable, clean this up.

Fixes: 23898c763f4a ('net/mlx5: E-Switch, Modify node guid on vf set MAC')
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Or Gerlitz 9 ani în urmă
părinte
comite
eae033c1b8
1 a modificat fișierele cu 0 adăugiri și 3 ștergeri
  1. 0 3
      drivers/net/ethernet/mellanox/mlx5/core/vport.c

+ 0 - 3
drivers/net/ethernet/mellanox/mlx5/core/vport.c

@@ -513,7 +513,6 @@ int mlx5_modify_nic_vport_node_guid(struct mlx5_core_dev *mdev,
 {
 {
 	int inlen = MLX5_ST_SZ_BYTES(modify_nic_vport_context_in);
 	int inlen = MLX5_ST_SZ_BYTES(modify_nic_vport_context_in);
 	void *nic_vport_context;
 	void *nic_vport_context;
-	u8 *guid;
 	void *in;
 	void *in;
 	int err;
 	int err;
 
 
@@ -535,8 +534,6 @@ int mlx5_modify_nic_vport_node_guid(struct mlx5_core_dev *mdev,
 
 
 	nic_vport_context = MLX5_ADDR_OF(modify_nic_vport_context_in,
 	nic_vport_context = MLX5_ADDR_OF(modify_nic_vport_context_in,
 					 in, nic_vport_context);
 					 in, nic_vport_context);
-	guid = MLX5_ADDR_OF(nic_vport_context, nic_vport_context,
-			    node_guid);
 	MLX5_SET64(nic_vport_context, nic_vport_context, node_guid, node_guid);
 	MLX5_SET64(nic_vport_context, nic_vport_context, node_guid, node_guid);
 
 
 	err = mlx5_modify_nic_vport_context(mdev, in, inlen);
 	err = mlx5_modify_nic_vport_context(mdev, in, inlen);