提交 1833611d 编写于 作者: J Joe Perches 提交者: David S. Miller

s390: Use eth_random_addr

Convert the existing uses of random_ether_addr to
the new eth_random_addr.
Signed-off-by: NJoe Perches <joe@perches.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 344dc8ed
...@@ -647,7 +647,7 @@ static int qeth_l2_request_initial_mac(struct qeth_card *card) ...@@ -647,7 +647,7 @@ static int qeth_l2_request_initial_mac(struct qeth_card *card)
} }
QETH_DBF_HEX(SETUP, 2, card->dev->dev_addr, OSA_ADDR_LEN); QETH_DBF_HEX(SETUP, 2, card->dev->dev_addr, OSA_ADDR_LEN);
} else { } else {
random_ether_addr(card->dev->dev_addr); eth_random_addr(card->dev->dev_addr);
memcpy(card->dev->dev_addr, vendor_pre, 3); memcpy(card->dev->dev_addr, vendor_pre, 3);
} }
return 0; return 0;
......
...@@ -1473,7 +1473,7 @@ static int qeth_l3_iqd_read_initial_mac_cb(struct qeth_card *card, ...@@ -1473,7 +1473,7 @@ static int qeth_l3_iqd_read_initial_mac_cb(struct qeth_card *card,
memcpy(card->dev->dev_addr, memcpy(card->dev->dev_addr,
cmd->data.create_destroy_addr.unique_id, ETH_ALEN); cmd->data.create_destroy_addr.unique_id, ETH_ALEN);
else else
random_ether_addr(card->dev->dev_addr); eth_random_addr(card->dev->dev_addr);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册