[PATCH 52/87] scsi: qlogicpti: remove memset after dma_alloc_coherent in qlogicpti.c

From: Fuqian Huang
Date: Thu Jun 27 2019 - 13:42:43 EST


In commit af7ddd8a627c
("Merge tag 'dma-mapping-4.21' of git://git.infradead.org/users/hch/dma-mapping"),
dma_alloc_coherent has already zeroed the memory.
So memset is not needed.

Signed-off-by: Fuqian Huang <huangfq.daxian@xxxxxxxxx>
---
drivers/scsi/qlogicpti.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/scsi/qlogicpti.c b/drivers/scsi/qlogicpti.c
index 9335849f6bea..7868db052042 100644
--- a/drivers/scsi/qlogicpti.c
+++ b/drivers/scsi/qlogicpti.c
@@ -828,8 +828,6 @@ static int qpti_map_queues(struct qlogicpti *qpti)
printk("QPTI: Cannot map request queue.\n");
return -1;
}
- memset(qpti->res_cpu, 0, QSIZE(RES_QUEUE_LEN));
- memset(qpti->req_cpu, 0, QSIZE(QLOGICPTI_REQ_QUEUE_LEN));
return 0;
}

--
2.11.0