ionic: Use netdev_name() function instead of netdev->name
There is no reason not to use netdev_name() in these places, so do just as the title states. Signed-off-by: Brett Creeley <brett.creeley@amd.com> Signed-off-by: Shannon Nelson <shannon.nelson@amd.com> Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Link: https://lore.kernel.org/r/20240529000259.25775-6-shannon.nelson@amd.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
d9c0420999
commit
fc53d46524
@@ -220,7 +220,7 @@ static int netdev_show(struct seq_file *seq, void *v)
|
||||
{
|
||||
struct net_device *netdev = seq->private;
|
||||
|
||||
seq_printf(seq, "%s\n", netdev->name);
|
||||
seq_printf(seq, "%s\n", netdev_name(netdev));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -237,7 +237,7 @@ static int ionic_request_irq(struct ionic_lif *lif, struct ionic_qcq *qcq)
|
||||
const char *name;
|
||||
|
||||
if (lif->registered)
|
||||
name = lif->netdev->name;
|
||||
name = netdev_name(lif->netdev);
|
||||
else
|
||||
name = dev_name(dev);
|
||||
|
||||
@@ -3732,7 +3732,7 @@ static void ionic_lif_set_netdev_info(struct ionic_lif *lif)
|
||||
},
|
||||
};
|
||||
|
||||
strscpy(ctx.cmd.lif_setattr.name, lif->netdev->name,
|
||||
strscpy(ctx.cmd.lif_setattr.name, netdev_name(lif->netdev),
|
||||
sizeof(ctx.cmd.lif_setattr.name));
|
||||
|
||||
ionic_adminq_post_wait(lif, &ctx);
|
||||
|
||||
Reference in New Issue
Block a user