block: skd_main.c: Remove call to memset after dma_alloc_coherent

In commit af7ddd8a62
("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.

Reviewed-by: Chaitanya Kulkarni <[email protected]>
Signed-off-by: Fuqian Huang <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
Fuqian Huang 2019-06-28 01:35:16 +08:00 • committed by Jens Axboe
commit 5f2ab0c1c8

View file

@ -2696,7 +2696,6 @@ static int skd_cons_skmsg(struct skd_device *skdev)
(FIT_QCMD_ALIGN - 1),
"not aligned: msg_buf %p mb_dma_address %pad\n",
skmsg->msg_buf, &skmsg->mb_dma_address);
memset(skmsg->msg_buf, 0, SKD_N_FITMSG_BYTES);
}
err_out: