Replaced dma_alloc_coherent + memset with dma_zalloc_coherent
Signed-off-by: Sabyasachi Gupta <sabyasachi.linux@gmail.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
        wq->rqt_abs_idx = (wq->rqt_hwaddr - rdev->lldi.vr->rq.start) >>
                T4_RQT_ENTRY_SHIFT;
 
-       wq->queue = dma_alloc_coherent(&rdev->lldi.pdev->dev,
+       wq->queue = dma_zalloc_coherent(&rdev->lldi.pdev->dev,
                                       wq->memsize, &wq->dma_addr,
                        GFP_KERNEL);
        if (!wq->queue)
                goto err_free_rqtpool;
 
-       memset(wq->queue, 0, wq->memsize);
        dma_unmap_addr_set(wq, mapping, wq->dma_addr);
 
        wq->bar2_va = c4iw_bar2_addrs(rdev, wq->qid, CXGB4_BAR2_QTYPE_EGRESS,