Skip to content

Commit 1833611

Browse files
JoePerchesdavem330
authored andcommitted
s390: Use eth_random_addr
Convert the existing uses of random_ether_addr to the new eth_random_addr. Signed-off-by: Joe Perches <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 344dc8e commit 1833611

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/s390/net/qeth_l2_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ static int qeth_l2_request_initial_mac(struct qeth_card *card)
647647
}
648648
QETH_DBF_HEX(SETUP, 2, card->dev->dev_addr, OSA_ADDR_LEN);
649649
} else {
650-
random_ether_addr(card->dev->dev_addr);
650+
eth_random_addr(card->dev->dev_addr);
651651
memcpy(card->dev->dev_addr, vendor_pre, 3);
652652
}
653653
return 0;

drivers/s390/net/qeth_l3_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,7 @@ static int qeth_l3_iqd_read_initial_mac_cb(struct qeth_card *card,
14731473
memcpy(card->dev->dev_addr,
14741474
cmd->data.create_destroy_addr.unique_id, ETH_ALEN);
14751475
else
1476-
random_ether_addr(card->dev->dev_addr);
1476+
eth_random_addr(card->dev->dev_addr);
14771477

14781478
return 0;
14791479
}

0 commit comments

Comments
 (0)