Commit ce8bd03c authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Jakub Kicinski

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: a7639279 ("ethernet: sun: remove direct netdev->dev_addr writes")
Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Link: https://lore.kernel.org/r/20211011173424.7743035d@canb.auug.org.auSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 0182d078
......@@ -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);
......
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