Skip to content

Commit 9168f5a

Browse files
julianwiedmanndavem330
authored andcommitted
s390/qeth: remove unused fallback in Layer3's MAC code
If the CREATE ADDR sent by qeth_l3_iqd_read_initial_mac() fails, its callback sets a random MAC address on the net_device. The error then propagates back, and qeth_l3_setup_netdev() bails out without registering the net_device. Any subsequent call to qeth_l3_setup_netdev() will then attempt a fresh CREATE ADDR which either 1) also fails, or 2) sets a proper MAC address on the net_device. Consequently, the net_device will never be registered with a random MAC and we can drop the fallback code. Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 4fa55fa commit 9168f5a

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
@@ -949,9 +949,6 @@ static int qeth_l3_iqd_read_initial_mac_cb(struct qeth_card *card,
949949
if (cmd->hdr.return_code == 0)
950950
ether_addr_copy(card->dev->dev_addr,
951951
cmd->data.create_destroy_addr.unique_id);
952-
else
953-
eth_random_addr(card->dev->dev_addr);
954-
955952
return 0;
956953
}
957954

0 commit comments

Comments
 (0)