block: skd_main.c: Remove call to memset after dma_alloc_coherent
authorFuqian Huang <huangfq.daxian@gmail.com>
Thu, 27 Jun 2019 17:35:16 +0000 (01:35 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 29 Jun 2019 15:42:51 +0000 (09:42 -0600)
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.

Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/skd_main.c

index 7d3ad6c22ee5171a8e55515bea06a3c224a2382a..abeae7616f04f1abdc2af6ae4f3077aa6cc29897 100644 (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: