Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3700043ybi; Sun, 14 Jul 2019 20:21:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqy1q9pnnWGna7+X6lvnX/TuQjmxHSzK1qHHtjal6K+s/Vw1mpFDqDO8n4ZygKyNRm05nQuk X-Received: by 2002:a17:902:bcc4:: with SMTP id o4mr25412207pls.90.1563160917462; Sun, 14 Jul 2019 20:21:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563160917; cv=none; d=google.com; s=arc-20160816; b=eB5OdQJE8KU1VI96yKUPr/UMIdZXPtA2NiRdv/mK6bf1My2AoVP0wnN2mpx+GmgRiu e0q0z3ohTYECpuKX/d4IdzJ7VhPOea7uIaZyGA+0wbHF1cvrO0zQemNm/APe1qW0LjDD BeE/rndLK3Pxw0AH4oRQxFQpTvvVjbndfbxSRAgDq6ojjCyHjRLByJNou81vPk2J9d6p SGGoYv4FNTB/CJFP9jKxteA/saekP6S0SEAE8gJN0DNubWuESeFqA7XXYeM+JaKxaZhB oUCF/KZLf7Czj+ua1kC1wgAps+sQJpNA1E8YG/C+IC3xCN4LQt95zAEIp3/GxnGJ29IE G+1A== 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=ZXfThpBYXPevWP7jcmv6IbQmrSRH4OaB0mJT6tSCKPI=; b=dNPyPgtrmBv6z0Mj8DD0QBwwdZ53boVKB9Q0AjYaKcg8mH6Tbxk1MFA52a5HVYwcil 5ig3lNg8tcq1351a925251k/cZ7pelgzjGeicRXUXz/pQZH5nMYl/d3dgnYjq8s8SN7Z EytEIWNk3YR98HsMtJY6pbG5mCXyyEVNR/BgrXC5HWWew7uZlZLtBpXOTXZH1+Dt0D+6 qJYvV8ISZlta45FW2d6NHQMfB2elyHmjjsfSh6LtBEF6mZLt+SPCFA5jLbzU1skJ7cES dxrOo9pZqvN074vQB3tLMjs9NRzOElnuMjQO3VL04Fy3ezQItMaDRFXr5FrDRKnSWzyY lyJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=hu0MGuP2; 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 i36si14042805plb.365.2019.07.14.20.21.38; Sun, 14 Jul 2019 20:21:57 -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=hu0MGuP2; 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 S1729297AbfGODTK (ORCPT + 99 others); Sun, 14 Jul 2019 23:19:10 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:38693 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729029AbfGODTK (ORCPT ); Sun, 14 Jul 2019 23:19:10 -0400 Received: by mail-pf1-f193.google.com with SMTP id y15so6738814pfn.5; Sun, 14 Jul 2019 20:19:10 -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=ZXfThpBYXPevWP7jcmv6IbQmrSRH4OaB0mJT6tSCKPI=; b=hu0MGuP2X8jBZU/ZCxP1N5I9Vg21uWRuCrQQZXPyl84gqO8yv4P+6Eb668SylctbyC eQWMJyZKEHHudd9XgA1n6DbvKiNrMPJ80i6HKKCGuI0WItf5G22wmQWNX3szb9dPjSje KfaeE23XobQq1ZXW9wusRHFnfC7SqdKiFJN5A5SJQLP3eQANqJzwSxqVz5eJ5OQGc31G 46QMsMXy265jrGECrNtZevPVfN9qLiDvCLI0kTOe8rcXX8u+PkvBipBxWdzeeyrzpyjr CmRQRUVl6ULWMNUpcJzUb2mFuvvsCOWUeYjxQhrmpc0D/eqQNpEu1e4HIqBv/pvx+MuJ 3hYw== 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=ZXfThpBYXPevWP7jcmv6IbQmrSRH4OaB0mJT6tSCKPI=; b=smLqAEr3trwJ6N2uNOCvid74qNZDXlxirSikwKPGe6uqKvUwwHF4NjDyZ6QIStMbFX rEkabhql7k/2aINd31KjwtdMtNK5A8n9FXCJPhuhAWiLo9wlmc6HS9xZRAdcwfPgDQV/ M6iVEy8HNbkKFkgNbPNlqKXaPeatOXRxywVVGbN5PiLZX5wYXxmuEZrR5lzlXxjT9076 bDLi/FF3pKTUP/swSD/XP/4+AY8Y6ZRgKClvOHfmaBAUF4Q2jgKNUte+mF7RNhzjI9dh 0Cgc4rs6rZNdHR1D1/uBhxSgktVbbfQsyjdoyLDg8ZzwfzZ7+OmkHxkjh2usOLO0AD/J EOEQ== X-Gm-Message-State: APjAAAUznjI5Og9AirvvqfBLje28/BgFWLuVAMvPtK0Q+Sibcbu2monB V9GR+Ta48H58eXdiBH+plrM= X-Received: by 2002:a17:90a:d791:: with SMTP id z17mr25465085pju.40.1563160749925; Sun, 14 Jul 2019 20:19:09 -0700 (PDT) Received: from hfq-skylake.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.googlemail.com with ESMTPSA id r13sm17560449pfr.25.2019.07.14.20.19.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 Jul 2019 20:19:09 -0700 (PDT) From: Fuqian Huang Cc: Sathya Prakash , Chaitra P B , Suganath Prabu Subramani , MPT-FusionLinux.pdl@broadcom.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Fuqian Huang Subject: [PATCH v3 16/24] scsi: mptfusion: Remove call to memset after pci_alloc_consistent Date: Mon, 15 Jul 2019 11:18:58 +0800 Message-Id: <20190715031858.6936-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 pci_alloc_consistent calls dma_alloc_coherent directly. 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/message/fusion/mptbase.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index c2dd322691d1..3eeb4cbdaf3b 100644 --- a/drivers/message/fusion/mptbase.c +++ b/drivers/message/fusion/mptbase.c @@ -4507,7 +4507,6 @@ PrimeIocFifos(MPT_ADAPTER *ioc) dinitprintk(ioc, printk(MYIOC_s_DEBUG_FMT "Total alloc @ %p[%p], sz=%d[%x] bytes\n", ioc->name, mem, (void *)(ulong)alloc_dma, total_size, total_size)); - memset(mem, 0, total_size); ioc->alloc_total += total_size; ioc->alloc = mem; ioc->alloc_dma = alloc_dma; -- 2.11.0