RDS: remove superfluous from rds_ib_alloc_fmr()
authorsantosh.shilimkar@oracle.com <santosh.shilimkar@oracle.com>
Tue, 25 Aug 2015 19:02:03 +0000 (12:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Aug 2015 23:28:11 +0000 (16:28 -0700)
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>
net/rds/ib_rdma.c

index e596dfb76038f7474e309c666253c40054459032..251d1ce0b7c7a0da22fc445e778b2078559168f4 100644 (file)
@@ -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 |