diff options
author | Fuqian Huang <huangfq.daxian@gmail.com> | 2019-06-28 01:35:16 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-06-29 09:42:51 -0600 |
commit | 5f2ab0c1c896764ef3b2d01d9e40d138c2bfd791 (patch) | |
tree | 05523834764c786dd51ecd700c7f91fcb7c0d854 /drivers/block | |
parent | b71e8c13fa57811b64939ba7eb603775fb13c2eb (diff) | |
download | linux-5f2ab0c1c896764ef3b2d01d9e40d138c2bfd791.tar.gz linux-5f2ab0c1c896764ef3b2d01d9e40d138c2bfd791.tar.bz2 linux-5f2ab0c1c896764ef3b2d01d9e40d138c2bfd791.zip |
block: skd_main.c: Remove call to memset after dma_alloc_coherent
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>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/skd_main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/block/skd_main.c b/drivers/block/skd_main.c index 7d3ad6c22ee5..abeae7616f04 100644 --- a/drivers/block/skd_main.c +++ b/drivers/block/skd_main.c @@ -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: |