mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
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 <chaitanya.kulkarni@wdc.com>
Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
b71e8c13fa
commit
5f2ab0c1c8
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user