Skip to content

Commit 344dc8e

Browse files
JoePerchesdavem330
authored andcommitted
drivers/net: 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 f4f7f41 commit 344dc8e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/net/tun.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* Add TUNSETLINK ioctl to set the link encapsulation
2323
*
2424
* Mark Smith <[email protected]>
25-
* Use random_ether_addr() for tap MAC address.
25+
* Use eth_random_addr() for tap MAC address.
2626
*
2727
* Harald Roelle <[email protected]> 2004/04/20
2828
* Fixes in packet dropping, queue length setting and queue wakeup.

drivers/net/wimax/i2400m/driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ int i2400m_setup(struct i2400m *i2400m, enum i2400m_bri bm_flags)
896896
result = i2400m_read_mac_addr(i2400m);
897897
if (result < 0)
898898
goto error_read_mac_addr;
899-
random_ether_addr(i2400m->src_mac_addr);
899+
eth_random_addr(i2400m->src_mac_addr);
900900

901901
i2400m->pm_notifier.notifier_call = i2400m_pm_notifier;
902902
register_pm_notifier(&i2400m->pm_notifier);

0 commit comments

Comments
 (0)