summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2020-07-18 09:02:46 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-23 12:56:49 +0200
commit21ee9b1995fc01510352d4a55c5316283293b020 (patch)
tree59f8f80f89fb80a61612ea71beda7ac5fadd879b /drivers
parentmisc: hpilo: switch from 'pci_' to 'dma_' API (diff)
downloadlinux-21ee9b1995fc01510352d4a55c5316283293b020.tar.xz
linux-21ee9b1995fc01510352d4a55c5316283293b020.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/misc/hpilo.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/misc/hpilo.c b/drivers/misc/hpilo.c
index c9539c89a925..fea3ae9d8686 100644
--- a/drivers/misc/hpilo.c
+++ b/drivers/misc/hpilo.c
@@ -281,8 +281,6 @@ static int ilo_ccb_setup(struct ilo_hwinfo *hw, struct ccb_data *data, int slot)
dma_va = (char *)data->dma_va;
dma_pa = data->dma_pa;
- memset(dma_va, 0, data->dma_size);
-
dma_va = (char *)roundup((unsigned long)dma_va, ILO_START_ALIGN);
dma_pa = roundup(dma_pa, ILO_START_ALIGN);