diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2013-05-07 23:18:16 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-08 01:38:27 (GMT) |
commit | 50bea5c0d583e255e3d8a193f8b20e177bac8ec8 (patch) | |
tree | b2d71f94a5caf90c4f3d71bf9aac95d27f19e2d6 /drivers/infiniband/ulp/ipoib/ipoib_cm.c | |
parent | e00adf39134028d65023c327b427074728c18f7e (diff) | |
download | linux-50bea5c0d583e255e3d8a193f8b20e177bac8ec8.tar.xz |
drivers/infiniband/hw: rename random32() to prandom_u32()
Use preferable function name which implies using a pseudo-random number
generator.
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib_cm.c')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_cm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_cm.c b/drivers/infiniband/ulp/ipoib/ipoib_cm.c index 1ef880d..3eceb61 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_cm.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_cm.c @@ -460,7 +460,7 @@ static int ipoib_cm_req_handler(struct ib_cm_id *cm_id, struct ib_cm_event *even goto err_qp; } - psn = random32() & 0xffffff; + psn = prandom_u32() & 0xffffff; ret = ipoib_cm_modify_rx_qp(dev, cm_id, p->qp, psn); if (ret) goto err_modify; |