projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: use get_random_u32() when possible
[linux-block.git]
/
drivers
/
net
/
bonding
/
bond_main.c
diff --git
a/drivers/net/bonding/bond_main.c
b/drivers/net/bonding/bond_main.c
index 24bb50dfd362afaed4cd90e68bebd4bdc04c077b..e84c49bf4d0c37ff2649bd2baaf737bd84303814 100644
(file)
--- a/
drivers/net/bonding/bond_main.c
+++ b/
drivers/net/bonding/bond_main.c
@@
-4806,7
+4806,7
@@
static u32 bond_rr_gen_slave_id(struct bonding *bond)
switch (packets_per_slave) {
case 0:
- slave_id =
p
random_u32();
+ slave_id =
get_
random_u32();
break;
case 1:
slave_id = this_cpu_inc_return(*bond->rr_tx_counter);