aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@mellanox.com>2017-01-25 13:26:18 -0500
committerDoug Ledford <dledford@redhat.com>2017-02-14 11:44:42 -0500
commit850b74151433966cff84801867e2a210a1c830bf (patch)
treec17544d1177ff237bf0359410773b2d52bdba3b3
parentc4550c63b363914071d63a36e5bedcfe22057940 (diff)
IB/mlx4: Remove unused variable from function declaration
Remove unused netw_view parameter from eth_link_query_port() function. Reported-by: Shiraz Saleem <shiraz.saleem@intel.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r--drivers/infiniband/hw/mlx4/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c
index ba6af84cc236..211cbbe9ccd1 100644
--- a/drivers/infiniband/hw/mlx4/main.c
+++ b/drivers/infiniband/hw/mlx4/main.c
@@ -678,7 +678,7 @@ static u8 state_to_phys_state(enum ib_port_state state)
678} 678}
679 679
680static int eth_link_query_port(struct ib_device *ibdev, u8 port, 680static int eth_link_query_port(struct ib_device *ibdev, u8 port,
681 struct ib_port_attr *props, int netw_view) 681 struct ib_port_attr *props)
682{ 682{
683 683
684 struct mlx4_ib_dev *mdev = to_mdev(ibdev); 684 struct mlx4_ib_dev *mdev = to_mdev(ibdev);
@@ -745,7 +745,7 @@ int __mlx4_ib_query_port(struct ib_device *ibdev, u8 port,
745 745
746 err = mlx4_ib_port_link_layer(ibdev, port) == IB_LINK_LAYER_INFINIBAND ? 746 err = mlx4_ib_port_link_layer(ibdev, port) == IB_LINK_LAYER_INFINIBAND ?
747 ib_link_query_port(ibdev, port, props, netw_view) : 747 ib_link_query_port(ibdev, port, props, netw_view) :
748 eth_link_query_port(ibdev, port, props, netw_view); 748 eth_link_query_port(ibdev, port, props);
749 749
750 return err; 750 return err;
751} 751}