提交 850b7415 编写于 作者: L Leon Romanovsky 提交者: Doug Ledford

IB/mlx4: Remove unused variable from function declaration

Remove unused netw_view parameter from eth_link_query_port() function.
Reported-by: NShiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: NLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: NDoug Ledford <dledford@redhat.com>
上级 c4550c63
...@@ -678,7 +678,7 @@ static u8 state_to_phys_state(enum ib_port_state state) ...@@ -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, 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); struct mlx4_ib_dev *mdev = to_mdev(ibdev);
...@@ -745,7 +745,7 @@ int __mlx4_ib_query_port(struct ib_device *ibdev, u8 port, ...@@ -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 ? err = mlx4_ib_port_link_layer(ibdev, port) == IB_LINK_LAYER_INFINIBAND ?
ib_link_query_port(ibdev, port, props, netw_view) : 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; return err;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册