Skip to content

Commit 4f03980

Browse files
David Decotignydavem330
authored andcommitted
net: usnic: remove unused call to ethtool_ops::get_settings
Signed-off-by: David Decotigny <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a87cb3e commit 4f03980

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/infiniband/hw/usnic/usnic_ib_verbs.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ int usnic_ib_query_device(struct ib_device *ibdev,
269269
struct usnic_ib_dev *us_ibdev = to_usdev(ibdev);
270270
union ib_gid gid;
271271
struct ethtool_drvinfo info;
272-
struct ethtool_cmd cmd;
273272
int qp_per_vf;
274273

275274
usnic_dbg("\n");
@@ -278,7 +277,6 @@ int usnic_ib_query_device(struct ib_device *ibdev,
278277

279278
mutex_lock(&us_ibdev->usdev_lock);
280279
us_ibdev->netdev->ethtool_ops->get_drvinfo(us_ibdev->netdev, &info);
281-
us_ibdev->netdev->ethtool_ops->get_settings(us_ibdev->netdev, &cmd);
282280
memset(props, 0, sizeof(*props));
283281
usnic_mac_ip_to_gid(us_ibdev->ufdev->mac, us_ibdev->ufdev->inaddr,
284282
&gid.raw[0]);

0 commit comments

Comments
 (0)