Skip to content

Commit ded9da1

Browse files
julianwiedmanndavem330
authored andcommitted
s390/qeth: don't process hsuid in qeth_l3_setup_netdev()
qeth_l3_setup_netdev() checks if the hsuid attribute is set on the qeth device, and propagates it to the net_device. In the past this was needed to pick up any hsuid that was set before allocation of the net_device. With commit d3d1b20 ("s390/qeth: allocate netdevice early") this is no longer necessary, qeth_l3_dev_hsuid_store() always stores the hsuid straight into dev->perm_addr. Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 9168f5a commit ded9da1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/s390/net/qeth_l3_main.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2279,9 +2279,6 @@ static int qeth_l3_setup_netdev(struct qeth_card *card, bool carrier_ok)
22792279
rc = qeth_l3_iqd_read_initial_mac(card);
22802280
if (rc)
22812281
goto out;
2282-
2283-
if (card->options.hsuid[0])
2284-
memcpy(card->dev->perm_addr, card->options.hsuid, 9);
22852282
} else
22862283
return -ENODEV;
22872284

0 commit comments

Comments
 (0)