diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2013-03-04 07:58:17 -0500 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-04-17 01:47:05 -0400 |
commit | cc529c0d72bd2490801ce324caf2ea0a0c1d7b1e (patch) | |
tree | c8cda4e8edfa28586f27927a7d2591534dfd41bf /drivers/infiniband/ulp | |
parent | bc4ba94ce792f6444daf47b39fe8023428ac25b5 (diff) |
RDMA: Rename random32() to prandom_u32()
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Cc: Roland Dreier <roland@kernel.org>
Cc: Sean Hefty <sean.hefty@intel.com>
Cc: Hal Rosenstock <hal.rosenstock@gmail.com>
Cc: Steve Wise <swise@chelsio.com>
Cc: linux-rdma@vger.kernel.org
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/ulp')
-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 1ef880de3a41..3eceb61e3532 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 | |||
460 | goto err_qp; | 460 | goto err_qp; |
461 | } | 461 | } |
462 | 462 | ||
463 | psn = random32() & 0xffffff; | 463 | psn = prandom_u32() & 0xffffff; |
464 | ret = ipoib_cm_modify_rx_qp(dev, cm_id, p->qp, psn); | 464 | ret = ipoib_cm_modify_rx_qp(dev, cm_id, p->qp, psn); |
465 | if (ret) | 465 | if (ret) |
466 | goto err_modify; | 466 | goto err_modify; |