diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2021-10-11 17:34:24 +1100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-10-11 07:34:04 -0700 |
commit | ce8bd03c47fc8328e82a48d332fba69fd538e9bf (patch) | |
tree | 13ec009f3006715bfb0a0439f1047de8fe5590c0 /drivers/net/ethernet/sun/ldmvsw.c | |
parent | 0182d0788cd66292cb1698b48dd21887d93c68ed (diff) |
ethernet: sun: add missing semicolon, fix build
Fix for this build problem:
drivers/net/ethernet/sun/ldmvsw.c: In function 'vsw_alloc_netdev':
drivers/net/ethernet/sun/ldmvsw.c:243:2: error: expected ';' before 'sprintf'
sprintf(dev->name, "vif%d.%d", (int)handle, (int)port_id);
^~~~~~~
Fixes: a7639279c93c ("ethernet: sun: remove direct netdev->dev_addr writes")
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Link: https://lore.kernel.org/r/20211011173424.7743035d@canb.auug.org.au
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/sun/ldmvsw.c')
-rw-r--r-- | drivers/net/ethernet/sun/ldmvsw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sun/ldmvsw.c b/drivers/net/ethernet/sun/ldmvsw.c index 074c5407c86b..6b59b14e74b1 100644 --- a/drivers/net/ethernet/sun/ldmvsw.c +++ b/drivers/net/ethernet/sun/ldmvsw.c @@ -238,7 +238,7 @@ static struct net_device *vsw_alloc_netdev(u8 hwaddr[], dev->needed_tailroom = 8; eth_hw_addr_set(dev, hwaddr); - ether_addr_copy(dev->perm_addr, dev->dev_addr) + ether_addr_copy(dev->perm_addr, dev->dev_addr); sprintf(dev->name, "vif%d.%d", (int)handle, (int)port_id); |