Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

misc: hpilo: avoid a useless memset

Avoid a memset after a call to 'dma_alloc_coherent()'.
This is useless since
commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*")

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20200718070246.338016-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Christophe JAILLET and committed by
Greg Kroah-Hartman
21ee9b19 146f90af

-2
-2
drivers/misc/hpilo.c
··· 281 281 dma_va = (char *)data->dma_va; 282 282 dma_pa = data->dma_pa; 283 283 284 - memset(dma_va, 0, data->dma_size); 285 - 286 284 dma_va = (char *)roundup((unsigned long)dma_va, ILO_START_ALIGN); 287 285 dma_pa = roundup(dma_pa, ILO_START_ALIGN); 288 286