From patchwork Thu Jun 27 17:35:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fuqian Huang X-Patchwork-Id: 11020145 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 03E651398 for ; Thu, 27 Jun 2019 17:36:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EAC4828696 for ; Thu, 27 Jun 2019 17:36:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DEC8528681; Thu, 27 Jun 2019 17:36:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8C85D28696 for ; Thu, 27 Jun 2019 17:36:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=05RHpVD2yz/+Ll4ikdpOvFWrHcQnY7Y1gXKeXzi12bk=; b=uHl jYhSu4JA330n1zACsbm8mgKLln6HT5aysNQbe0x2N249TggpaucgN5m5Bv8bIQTNVMQ0XfMZijWoY jm2oWK1qWwGxTXOifZAfTRr+3pIkGWMKGn+J2zeY8BRfkGqyg2d5HQ2pjE30Djo9cyJXCpYcjw7Jy SaFZeu1usXUZ776ZqvE71YBXutxkiGSEzzyJGrbDjeHGJIY+6it+gzoPpSmIh61Z5+c3xWNHV5at+ 5/pw3dDa5blI8Zldzf3Am1IjH/pCMw40umGdSiTAoI8/9TU/LRoa2FvZX+MMzZ2+tH5ZP5Eq3uIG8 UGZxmqaT1Sg1VcL0iWuE0K47MjO+OTw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hgYJb-0002tX-Ox; Thu, 27 Jun 2019 17:36:08 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hgYJL-0002lD-QX for linux-arm-kernel@lists.infradead.org; Thu, 27 Jun 2019 17:35:53 +0000 Received: by mail-pf1-x444.google.com with SMTP id q10so1572391pff.9 for ; Thu, 27 Jun 2019 10:35:51 -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=01KFyhJUV3RoNriqLf5yZvf+oiqWf/wBU4j/uLg4Xuc=; b=uBVdbE3Jhxyv437CFJJGnINzZBdXk56Qp/pNpZfZPaOVfVl+sZMXIyYzWjz8o0VFnJ T+JSipaAlS39HZMZj0VHrh5JLWeYKWebAhdklZafCZzcg8OnY3Ev3gx3zHCi1p9pmUYW Lf1rupKSulkylrYR17QzTHWsFDKqc2zLyd8zaAcCT7NurEi89oquIGSkmr/cGCKN6D1m 8r4MqtBJmIQ7xPm6zn+kW2YGk2ElBGUveuQ3AZWvEmJmINhu4x2v4BEi7lJKh3BVPwGg 2olzaHXAxVT9n3DBpWU8gxoD1qZPQVbZM/sDKnRTzXt+hoVP+po5g+GYJ2q1+hdki7r3 P70Q== 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=01KFyhJUV3RoNriqLf5yZvf+oiqWf/wBU4j/uLg4Xuc=; b=WXIL9k36vhhXvczIThH8NxCUfBbY89xWfqwBs8nmQllnRt0olbfcK3VSnrxEDUqj3G AJUrJr0DKkRdiOy+MQy1GBCaviP8N9buWHrVcxEJrwtccfNmyT5Uy9YxQF4bJjyUw3i1 KnaIAYm2CeBBJpArSRDSAbS89UPBNctQB6X7wSUVXoLBZMbLmKMNImsI36SQf+oyIrYI 5aRUg6zDJtIE6CKVrbZYoHo/retnXzezPzsP5HQGeXs3+HH2yMkA75H75qrOTtyJdeZj N/lZrTz7RkivDCoJy3q3j/h4Z/X9kr2p0cDh3cjHzj8sTtgJv+M6s8c4zawSdAVkLvkI oFbg== X-Gm-Message-State: APjAAAXPTN3QEi56zfv3AGW/OuFFwNNr18WHs2yoSCG82tAZFY0Mn4ix 4i4v668ZSmM91rd+LC2dOTI= X-Google-Smtp-Source: APXvYqx+SNOeQczFkdaeBwmZhm/+mJTRZpohDTl9JOaOaz6UQcducOrh5q7I2LNI6Zl46a6QPO1zNg== X-Received: by 2002:a63:c34c:: with SMTP id e12mr4711054pgd.195.1561656951061; Thu, 27 Jun 2019 10:35:51 -0700 (PDT) Received: from hfq-skylake.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.googlemail.com with ESMTPSA id p68sm4011548pfb.80.2019.06.27.10.35.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jun 2019 10:35:50 -0700 (PDT) From: Fuqian Huang To: Subject: [PATCH 13/87] qcom: hidma_ll: Remove call to memset after dmam_alloc_coherent Date: Fri, 28 Jun 2019 01:35:44 +0800 Message-Id: <20190627173544.2509-1-huangfq.daxian@gmail.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190627_103552_016596_4B914D29 X-CRM114-Status: GOOD ( 10.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dmaengine@vger.kernel.org, linux-arm-msm@vger.kernel.org, Sinan Kaya , linux-kernel@vger.kernel.org, David Brown , Vinod Koul , Andy Gross , Fuqian Huang , Dan Williams , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP In commit af7ddd8a627c ("Merge tag 'dma-mapping-4.21' of git://git.infradead.org/users/hch/dma-mapping"), dmam_alloc_coherent has already zeroed the memory. So memset is not needed. Signed-off-by: Fuqian Huang --- drivers/dma/qcom/hidma_ll.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/dma/qcom/hidma_ll.c b/drivers/dma/qcom/hidma_ll.c index 5bf8b145c427..bb4471e84e48 100644 --- a/drivers/dma/qcom/hidma_ll.c +++ b/drivers/dma/qcom/hidma_ll.c @@ -749,7 +749,6 @@ struct hidma_lldev *hidma_ll_init(struct device *dev, u32 nr_tres, if (!lldev->tre_ring) return NULL; - memset(lldev->tre_ring, 0, (HIDMA_TRE_SIZE + 1) * nr_tres); lldev->tre_ring_size = HIDMA_TRE_SIZE * nr_tres; lldev->nr_tres = nr_tres; @@ -769,7 +768,6 @@ struct hidma_lldev *hidma_ll_init(struct device *dev, u32 nr_tres, if (!lldev->evre_ring) return NULL; - memset(lldev->evre_ring, 0, (HIDMA_EVRE_SIZE + 1) * nr_tres); lldev->evre_ring_size = HIDMA_EVRE_SIZE * nr_tres; /* the EVRE ring has to be EVRE_SIZE aligned */