Skip to content

Commit

Permalink
ionic: remove unnecessary indirection
Browse files Browse the repository at this point in the history
We have the pointer already, don't need to go through the
lif struct for it.

Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Shannon Nelson authored and David S. Miller committed Feb 13, 2023
1 parent 8024edf commit 7bb9900
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/pensando/ionic/ionic_lif.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ static void ionic_link_status_check(struct ionic_lif *lif)
mutex_lock(&lif->queue_lock);
err = ionic_start_queues(lif);
if (err && err != -EBUSY) {
netdev_err(lif->netdev,
netdev_err(netdev,
"Failed to start queues: %d\n", err);
set_bit(IONIC_LIF_F_BROKEN, lif->state);
netif_carrier_off(lif->netdev);
Expand Down Expand Up @@ -2507,7 +2507,7 @@ static int ionic_set_vf_rate(struct net_device *netdev, int vf,

ret = ionic_set_vf_config(ionic, vf, &vfc);
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);
Expand Down

0 comments on commit 7bb9900

Please sign in to comment.