Commit 7bb99009 authored by Shannon Nelson's avatar Shannon Nelson Committed by David S. Miller

ionic: remove unnecessary indirection

We have the pointer already, don't need to go through the
lif struct for it.
Signed-off-by: default avatarShannon Nelson <shannon.nelson@amd.com>
Reviewed-by: default avatarLeon Romanovsky <leonro@nvidia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8024edf3
...@@ -149,7 +149,7 @@ static void ionic_link_status_check(struct ionic_lif *lif) ...@@ -149,7 +149,7 @@ static void ionic_link_status_check(struct ionic_lif *lif)
mutex_lock(&lif->queue_lock); mutex_lock(&lif->queue_lock);
err = ionic_start_queues(lif); err = ionic_start_queues(lif);
if (err && err != -EBUSY) { if (err && err != -EBUSY) {
netdev_err(lif->netdev, netdev_err(netdev,
"Failed to start queues: %d\n", err); "Failed to start queues: %d\n", err);
set_bit(IONIC_LIF_F_BROKEN, lif->state); set_bit(IONIC_LIF_F_BROKEN, lif->state);
netif_carrier_off(lif->netdev); netif_carrier_off(lif->netdev);
...@@ -2507,7 +2507,7 @@ static int ionic_set_vf_rate(struct net_device *netdev, int vf, ...@@ -2507,7 +2507,7 @@ static int ionic_set_vf_rate(struct net_device *netdev, int vf,
ret = ionic_set_vf_config(ionic, vf, &vfc); ret = ionic_set_vf_config(ionic, vf, &vfc);
if (!ret) if (!ret)
lif->ionic->vfs[vf].maxrate = cpu_to_le32(tx_max); ionic->vfs[vf].maxrate = cpu_to_le32(tx_max);
} }
up_write(&ionic->vf_op_lock); up_write(&ionic->vf_op_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment