IB/mlx4: Remove unused variable from function declaration
authorLeon Romanovsky <leonro@mellanox.com>
Wed, 25 Jan 2017 18:26:18 +0000 (20:26 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 14 Feb 2017 16:44:42 +0000 (11:44 -0500)
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>
drivers/infiniband/hw/mlx4/main.c

index ba6af84cc23660cfcf3f4a3e057b1ee1b3c188dc..211cbbe9ccd1e7a97540df1fed2d838f03139e90 100644 (file)
@@ -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;
 }