Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2451278pxa; Mon, 24 Aug 2020 14:46:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4Z7LhD/fYJi44vRrWQuJJmSh/UuIkSNGFsJ+exP13oar1Q9TeoE5+PE/bMh6gtgWQ1uEQ X-Received: by 2002:aa7:c597:: with SMTP id g23mr4189290edq.172.1598305564962; Mon, 24 Aug 2020 14:46:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598305564; cv=none; d=google.com; s=arc-20160816; b=OvRGWGsnzKLQd3b7Lse9gGfCszpZYWEycYrSg4ruHd+Up5P8m80zaGAxzIAINQ7kev DBk/paUu9xqVMyQz9SNFnlpAobhA6iub0T3PoKy967CAHuNipBq90CW3N0svKccp8zkJ VbZ50eAIjdsVRgbZS/LKi8IbCWf73qkdYvv2SPdJ3Xj/u3Al9ldefoKBCVr+mnFs8oUg h0sbZTfN48/gKV1LPHs/Ep3mrzqyQ9qZvBXBXtvWJfa2tnaJADPdQsgQzu9uA5hal6Px +VVwnV7gkh0zhV59ql1JqZuJ66kvJxYX8BJv+lp73N8XRz0dvLzK5Jh3gSXFmW8dkly2 7NIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=hkARozwEXZJVRsmCa4FsWOarTsVSbx9L2pp/ThDbffw=; b=Jeq57c9GWQ0HZwblmtvHXf2Zp5TR2299UVneAleUCfRS2ikGQ0tPEUsaTylgzXW1S9 98+Zw2sOe+pF52XSRRb8WJijefC9FvCp+KlpjORM1fm/KrDryA5rTK/OwcoGO6t8L+Pp KvTkc/nzKVW4mLJJGOWCUfW0+XtEoiJPU8h/ADdyMovEwbFWrldQ4jA9Dwdo8u8Zjq8p Q/EoyqHCwhcu4PwwyGDxvX5L541zg4RQdEfSWfiAAqjeTHzAaL7fYxSEVgOGbUiwZGlZ P1qt2snE2T4/GemJIdLZnikdLATsqn76VTOxir7LRROeL2T2JOdmKgHyIQBp/1FyWqPh mDNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=knIBq9oV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j1si7220812ejt.542.2020.08.24.14.45.42; Mon, 24 Aug 2020 14:46:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=knIBq9oV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726664AbgHXVmy (ORCPT + 99 others); Mon, 24 Aug 2020 17:42:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726090AbgHXVmw (ORCPT ); Mon, 24 Aug 2020 17:42:52 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB60DC061574; Mon, 24 Aug 2020 14:42:51 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id o4so6570950wrn.0; Mon, 24 Aug 2020 14:42:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=hkARozwEXZJVRsmCa4FsWOarTsVSbx9L2pp/ThDbffw=; b=knIBq9oV5ZdXmHcbgn/kURoApVFwIuY5ZXEgUVupmzKeR/GzaQsx/D1AgoW9iM2AZo E0vOqcjTp4MrN7Dx0Q+cZFPrvDSUambr75qx592tyS+81bWVoYWeKiIdA4AU5Rlg2Rc2 USAKOtDY+OfzBVI6oWLHFjPDzQ6lyX0uLPYfy+78kwZLlhC9PtlyT1U7Gf35G+3XkPFt G3VMH05l+l0OO8A7tJr1OsLbUBXexkeRXmieu+oKk1sDL4YdVk3ZmfK2YHdH6Ns0JIW7 0/sK3VZkF5RfnfNXuyGCe18l4r4aVDmY8EGuZwKOLmOPG58hauBf8QXrsrj6HHofVZBT 0Q/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=hkARozwEXZJVRsmCa4FsWOarTsVSbx9L2pp/ThDbffw=; b=AcOctC1teTby5FgcmXuJ4KBOudlffVlKE2y4QR8ddqAnHIgkzbEZmWgv9GbeW/jaww WzBLrXqU1ElsR+tNmH9IEwPtB5FfxGcHyIWOJTaRvHZt8INqS5P2+We1sRJdNww4Emkl tCFyMs+NWO0XlyrfNJ5bB0PDOkxbQfQYMch0uvX9P8zXV0sYRNs5dUIIwfgJjteljSox KNqTW/QtZQf4wpDnPLbPt8QVReL4oinxomlm+ZdKExSOms0T5CZqv6BX7wmDzAn88vBg YiXbx1sAIdn3RSyKIGYBz3xA0nZBmjTdpfD9c0AFmBXXSR5hMkQH5mZ5S1ftCmdtz4FU wy4A== X-Gm-Message-State: AOAM530oFKujTjTTcurIPGTI1sKggoikZF0sPmvdCOWuvZbJO4IqcrXU p6v5PDplneniqdeS0chXOJex9/Ugt3ytIRlf X-Received: by 2002:adf:83c5:: with SMTP id 63mr7441486wre.321.1598305369981; Mon, 24 Aug 2020 14:42:49 -0700 (PDT) Received: from [192.168.0.18] (cpc83661-brig20-2-0-cust443.3-3.cable.virginm.net. [82.28.105.188]) by smtp.gmail.com with ESMTPSA id b14sm26542424wrj.93.2020.08.24.14.42.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Aug 2020 14:42:49 -0700 (PDT) Subject: Re: [PATCH] scsi: qla2xxx: Remove unnecessary call to memset To: Nilesh Javali , GR-QLogic-Storage-Upstream@marvell.com, "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200820185149.932178-1-alex.dewar90@gmail.com> From: Alex Dewar Message-ID: Date: Mon, 24 Aug 2020 22:42:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200820185149.932178-1-alex.dewar90@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-08-20 19:51, Alex Dewar wrote: > In qla25xx_set_els_cmds_supported(), a call is made to > dma_alloc_coherent() followed by zeroing the memory with memset. This is > unnecessary as dma_alloc_coherent() already zeros memory. Remove. > > Issue identified with Coccinelle. > > Signed-off-by: Alex Dewar Gentle ping? > --- > drivers/scsi/qla2xxx/qla_mbx.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c > index 226f1428d3e5..e00f604bbf7a 100644 > --- a/drivers/scsi/qla2xxx/qla_mbx.c > +++ b/drivers/scsi/qla2xxx/qla_mbx.c > @@ -4925,8 +4925,6 @@ qla25xx_set_els_cmds_supported(scsi_qla_host_t *vha) > return QLA_MEMORY_ALLOC_FAILED; > } > > - memset(els_cmd_map, 0, ELS_CMD_MAP_SIZE); > - > /* List of Purex ELS */ > cmd_opcode[0] = ELS_FPIN; > cmd_opcode[1] = ELS_RDP;