Skip to contentSkip to conversation

IB/mlx4: Remove unused variable from function declaration

PATCH Applied Leon Romanovsky 2 participants 2 messages Jan 25, 2017 – Feb 14, 2017 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 IB/mlx4: Remove unused variable from function declaration

Remove unused netw_view parameter from eth_link_query_port() function.

---
Hi Doug,

This patch was generated on top of Or's patch series.

Thanks

---
 drivers/infiniband/hw/mlx4/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/infiniband/hw/mlx4/main.c +2 -2
index ba6af84cc236..211cbbe9ccd1 100644
@@ -678,7 +678,7 @@ static u8 state_to_phys_state(enum ib_port_state state)
 }
 
 static int eth_link_query_port(struct ib_device *ibdev, u8 port,
-			       struct ib_port_attr *props, int netw_view)
+			       struct ib_port_attr *props)
 {
 
 	struct mlx4_ib_dev *mdev = to_mdev(ibdev);
@@ -745,7 +745,7 @@ int __mlx4_ib_query_port(struct ib_device *ibdev, u8 port,
 
 	err = mlx4_ib_port_link_layer(ibdev, port) == IB_LINK_LAYER_INFINIBAND ?
 		ib_link_query_port(ibdev, port, props, netw_view) :
-				eth_link_query_port(ibdev, port, props, netw_view);
+				eth_link_query_port(ibdev, port, props);
 
 	return err;
 }

--
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20170125182618.24899-1-leonro-VPRAkNaXOzVWk0Htik3J/[email protected]

Applied
#2 lore raw
Quoted 11 lines · Leon Romanovsky

Remove unused netw_view parameter from eth_link_query_port() function.

---
Hi Doug,

This patch was generated on top of Or's patch series.

Thanks

Thanks, applied.

Signature · 4 lines
Doug Ledford <[email protected]>
    GPG KeyID: B826A3330E572FDD
   
Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD