[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200102015430.140729-1-chenzhou10@huawei.com>
Date: Thu, 2 Jan 2020 09:54:30 +0800
From: Chen Zhou <chenzhou10@...wei.com>
To: <ysato@...rs.sourceforge.jp>, <dalias@...c.org>
CC: <linux-sh@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<chenzhou10@...wei.com>
Subject: [PATCH next] sh: remove call to memset after dma_alloc_coherent
Function dma_alloc_coherent use in buf already zeroes out memory,
so memset is not needed.
Signed-off-by: Chen Zhou <chenzhou10@...wei.com>
---
arch/sh/mm/consistent.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/sh/mm/consistent.c b/arch/sh/mm/consistent.c
index 3169a34..0de206c 100644
--- a/arch/sh/mm/consistent.c
+++ b/arch/sh/mm/consistent.c
@@ -57,8 +57,6 @@ int __init platform_resource_setup_memory(struct platform_device *pdev,
return -ENOMEM;
}
- memset(buf, 0, memsize);
-
r->flags = IORESOURCE_MEM;
r->start = dma_handle;
r->end = r->start + memsize - 1;
--
2.7.4
Powered by blists - more mailing lists