diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2013-03-04 13:58:17 +0100 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-04-17 07:47:05 +0200 |
commit | cc529c0d72bd2490801ce324caf2ea0a0c1d7b1e (patch) | |
tree | c8cda4e8edfa28586f27927a7d2591534dfd41bf /drivers/infiniband/ulp/ipoib | |
parent | RDMA/cxgb3: Fix uninitialized variable (diff) | |
download | linux-cc529c0d72bd2490801ce324caf2ea0a0c1d7b1e.tar.xz linux-cc529c0d72bd2490801ce324caf2ea0a0c1d7b1e.zip |
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/ipoib')
-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 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; |