Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3699150ybi; Sun, 14 Jul 2019 20:20:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwRv5TnycBmH9q9my0GgJYPKvZdz5SLUfSH3UXa9/W+91kFaTZtbPIDAzqkRpJV8AG4GEt X-Received: by 2002:a63:eb56:: with SMTP id b22mr24790996pgk.355.1563160852612; Sun, 14 Jul 2019 20:20:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563160852; cv=none; d=google.com; s=arc-20160816; b=LWjxEmcftZ34j52Rb2t5uUcvPu0asXDi3wr3X+u22+xef12fsS3tj3F3hmX6h18Xc+ k/GvdyCztAq8nPlagMvGggQK7wvkVnFd4CGWvom6hKWq7rU7AvQFD9uuI1qRu/uC5L9/ 6FWpx73w4L3O3LJklIsjs0DV2yECKHBTKAjpoz6EFXxNnJI6c3BemsXxiru41hsrXYkU JuBZxJjECxNam5LIlGyIEpSXR9xS7i1WUkvzwFvbSPVW0SL4Zc/i8Er1Er+BX08deIO4 319CXq9UYKhZ5H7I1nwGbnaJ0zXOJF7dLihsdE1egzCFlov7ovtM4Iu0k2MomPbdo/iF vwpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:message-id:date:subject:cc:from :dkim-signature; bh=1UsNuU488bAaTj0JaLnojkSixQzmMg2zbCbBzMy0HWw=; b=ixm6rpWujGRYXu6N7A8rm6Sn7pLv/Nn2rQE9shP4WSpYmmf91/6fLtgrAe+AdfAx1z hG19MQdIh+YSAH4x30pD07140jH+/4jkz3TYzX0n/s8Hxw2COP7Whsj8xkj+OsDGGl5o Flm5CrhfIeEa4sbdlJf/zoDzc4BvFyREo459cyvB7D26acEXDeOwCLXZO+9McUj/VSwz rv9MlCA5F6YbxnAOeMD53FqGoU7EfsIZSJIke+6u8zgX8ydEaSB1su6iw2QbwKjMegLU 5jaF0AeVygR2GU9frw3XPTpyQItaiEJcgNLRY+PmtXd50EfMjeQGN6oLKOgoVxbY3nrc BKXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=oFnD7fwF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l7si14365390pgp.318.2019.07.14.20.20.34; Sun, 14 Jul 2019 20:20:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=oFnD7fwF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729281AbfGODS6 (ORCPT + 99 others); Sun, 14 Jul 2019 23:18:58 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:45761 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727006AbfGODS6 (ORCPT ); Sun, 14 Jul 2019 23:18:58 -0400 Received: by mail-pf1-f195.google.com with SMTP id r1so6715435pfq.12; Sun, 14 Jul 2019 20:18:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=1UsNuU488bAaTj0JaLnojkSixQzmMg2zbCbBzMy0HWw=; b=oFnD7fwF5cyg4cvqJ7TqdFhRAWPdTc49K7YANgPbnWatdlA3Gl4VvwGJhu+olffQAg hR1eOySY2bND8nyvHT1JNUlY8n+gM986kC5KEl7wXtomxPfOTAZb95mxOT6XdU/RI1BR s1RMmHD3jvfy9ROmTY78VfeImpAeNmcdYQXv8wongDc6w4t7tf4nyLAfAtEcER7CPHEn PkCVuICpM5E0D2dXNH0UXhiiL0vlGduXdC9HbJK7kZfupSR7xlrihLbWz2TQmw6J7ibq k2BaAiqHKv50H0lyI2AEwvjyrJ2hxniHZbx18GL33ugmH95DYiSUdjTDS1bLUVANKPa3 ma3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=1UsNuU488bAaTj0JaLnojkSixQzmMg2zbCbBzMy0HWw=; b=PuByujQLcydKFRhjD8a0Txgc8R6INzH9MwPuKs/+x2TbF+RsckXdGWv/uHHMJz7WLU 4LfV+M14nkAA8UbTLik22kzjJFPqJQmGIUA3GzOjEVBVZJiFQ3apocGjI5VSPBym0+7h GBuQrv0IWymmgoS27m6807FWYkUyroRjs4zBXw/GoToexBWg+MBXDxPvQUSgs9PYZ4yw F7IHxbDZtsDke4bnXFhyelIc2UiV3h69ZWoUxBFcP8y07uQWukh5sdAn96YoAAPDdhuK BApHL1X+XW0+4HkugEgEtmQwZ8kjOMbDrQGmvFfeeFTwJTasHkL9F3sFJz7iLwmQxzpz HCrg== X-Gm-Message-State: APjAAAUziqfXEFYgt2NCPog9IUfUzki8HwXqghnrQ06Sx8LIbH4a2p1d axSWKfvpETU8uzlHLgSHmio= X-Received: by 2002:a65:5183:: with SMTP id h3mr24502771pgq.250.1563160737715; Sun, 14 Jul 2019 20:18:57 -0700 (PDT) Received: from hfq-skylake.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.googlemail.com with ESMTPSA id f64sm16421304pfa.115.2019.07.14.20.18.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 Jul 2019 20:18:57 -0700 (PDT) From: Fuqian Huang Cc: Kyungmin Park , Sylwester Nawrocki , Mauro Carvalho Chehab , Kukjin Kim , Krzysztof Kozlowski , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Fuqian Huang Subject: [PATCH v3 15/24] media: exynos4-is: Remove call to memset after dma_alloc_coherent Date: Mon, 15 Jul 2019 11:18:51 +0800 Message-Id: <20190715031851.6890-1-huangfq.daxian@gmail.com> X-Mailer: git-send-email 2.11.0 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*"), dma_alloc_coherent has already zeroed the memory. So memset is not needed Signed-off-by: Fuqian Huang --- Changes in v3: - Use actual commit rather than the merge commit in the commit message drivers/media/platform/exynos4-is/fimc-is.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/platform/exynos4-is/fimc-is.c b/drivers/media/platform/exynos4-is/fimc-is.c index e043d55133a3..77633e356305 100644 --- a/drivers/media/platform/exynos4-is/fimc-is.c +++ b/drivers/media/platform/exynos4-is/fimc-is.c @@ -341,7 +341,6 @@ static int fimc_is_alloc_cpu_memory(struct fimc_is *is) return -ENOMEM; is->memory.size = FIMC_IS_CPU_MEM_SIZE; - memset(is->memory.vaddr, 0, is->memory.size); dev_info(dev, "FIMC-IS CPU memory base: %#x\n", (u32)is->memory.paddr); -- 2.11.0