summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorsantosh.shilimkar@oracle.com <santosh.shilimkar@oracle.com>2015-08-25 21:02:03 +0200
committerDavid S. Miller <davem@davemloft.net>2015-08-26 01:28:11 +0200
commit272412141908c40517cc89d5bb2eb074a2ec1474 (patch)
treeadcb3b6bc121bb64c8c82e8ff0cca4b5fede3a4e /net
parentRDS: flush the FMR pool less often (diff)
downloadlinux-272412141908c40517cc89d5bb2eb074a2ec1474.tar.xz
linux-272412141908c40517cc89d5bb2eb074a2ec1474.zip
RDS: remove superfluous from rds_ib_alloc_fmr()
Memory allocated for 'ibmr' uses kzalloc_node() which already initialises the memory to zero. There is no need to do memset() 0 on that memory. Signed-off-by: Santosh Shilimkar <ssantosh@kernel.org> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/rds/ib_rdma.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/rds/ib_rdma.c b/net/rds/ib_rdma.c
index e596dfb76038..251d1ce0b7c7 100644
--- a/net/rds/ib_rdma.c
+++ b/net/rds/ib_rdma.c
@@ -360,8 +360,6 @@ static struct rds_ib_mr *rds_ib_alloc_fmr(struct rds_ib_device *rds_ibdev)
goto out_no_cigar;
}
- memset(ibmr, 0, sizeof(*ibmr));
-
ibmr->fmr = ib_alloc_fmr(rds_ibdev->pd,
(IB_ACCESS_LOCAL_WRITE |
IB_ACCESS_REMOTE_READ |