Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2568217iob; Sat, 30 Apr 2022 12:12:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKCToUjtWffoFFTcHezAHUZXCIuIwRPEsA0Tlc5W651qDzOPhlsO6iX1spZk3bLncz8fd+ X-Received: by 2002:a17:902:e054:b0:15c:ed0d:f13f with SMTP id x20-20020a170902e05400b0015ced0df13fmr4807697plx.76.1651345951611; Sat, 30 Apr 2022 12:12:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651345951; cv=none; d=google.com; s=arc-20160816; b=mQUyxc8iDDPEhSGc/mMMrk/StjY6ypTaODTiQYR6OhFJt26qQxQ6fMktaCV5AIRCXa tO30Awd1Moc23A0IJ4F8xtMpk1sozdPm4ma0auAxBTekxXoNmqkn4G1KEscC+yr/i5Nm gz8IWos+Pa3I9wMbBBk/Gu9C1fvu46g6qusYP1sH0XcSGv6oOxlQmcttqi+AKKpSqDUb kavsue+5URF/NAd52fLCQ95Di3JBXoh0mg9dOfOulYe5wnE1B4j4B6prt0Pz1HBqvuZm /D2NK/JQrpXejVmUsZFhDFL/jFIbkYKTt1/Ib0SmuZeY45GKk/9o6+03DY7gsQALwjbj 1BOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=ZFpADMpNUy2riU4+N7JTWxLSuEp4zLRopZiAue0Sesg=; b=qaMdlClw5ss5wLX7eY+hCYyau0C9NTAuuSv7+CyZOwrEw8eWeiVYX/6G5xSVG+pOOF OfUlcgUjb40dR1cKRo0R9qNSfalJ89EdYGQTw7Q9gKA5l2ee84pDEO+Zw5vkKkq8Xqyp j0dIStTyw9BZmwOUDM6WeYMVNcAHjUoOoiGd5Tn6hBJtzmf2HDzyzRgQvoP2zfDbld4Q 9EuiztekT8D4pN2caSzzvytX+OXHFyKALd/d/3ilUJ3lt3xIdebU5WHx+FHRcC8FnBsU 4rR+ubJVzJZx5HHAT8SEReDHvofhLVupYrBztbIeJGFjqWTXb2URQcS8AOOBsRsB9yAG 8C3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=F5lrgzGc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 18-20020a170902ee5200b0015caeda8720si6712554plo.106.2022.04.30.12.12.15; Sat, 30 Apr 2022 12:12:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=F5lrgzGc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382323AbiD3Hvk (ORCPT + 99 others); Sat, 30 Apr 2022 03:51:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233979AbiD3Hvj (ORCPT ); Sat, 30 Apr 2022 03:51:39 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A3B0BF47; Sat, 30 Apr 2022 00:48:17 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 66B8E5C0118; Sat, 30 Apr 2022 03:48:14 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sat, 30 Apr 2022 03:48:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1651304894; x= 1651391294; bh=ZFpADMpNUy2riU4+N7JTWxLSuEp4zLRopZiAue0Sesg=; b=F 5lrgzGcuMx9mm60H01rA02mgRiyjGEBznrdLP+7DEcGxzkKrEVmiGO6Rfkb9TbPd RNkVkck9BWGiLhmhs/nysWJdbZ+phTZ+pgVKoJ8o9bz4EbKSQ4wyxi87nl5ndt8v eTQLIqdUqV1YdG/esSlrFEup2B8uT678ZunOuzoOTq6SilK6IO7TegkeNTgsdYxL LfW/33m2bHQS5Xvg/JHAsUQwj/xdfqSKcjTALUqiuEcJCz7mSv2VXN5GTcxnEOT6 cdzBpTzphV93/3VFkxvrLZYPU+GCnPAE3jkgT1IkiiOLn4XGUlhEMstusZKwXVlY rR5Jyef7bofb8kS6GTmSA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvddtgdduvdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevufgjkfhfgggtsehmtderredttdejnecuhfhrohhmpefhihhnnhcu vfhhrghinhcuoehfthhhrghinheslhhinhhugidqmheikehkrdhorhhgqeenucggtffrrg htthgvrhhnpeelfeeklefggfetkedukeevfffgvdeuheetffekledtfeejteelieejteeh geelieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hfthhhrghinheslhhinhhugidqmheikehkrdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 30 Apr 2022 03:48:10 -0400 (EDT) Date: Sat, 30 Apr 2022 17:48:06 +1000 (AEST) From: Finn Thain To: Christophe JAILLET cc: Wan Jiabing , James Smart , Ram Vegesna , "James E.J. Bottomley" , "Martin K. Petersen" , Daniel Wagner , linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, linux-kernel@vger.kernel.org, cocci@inria.fr Subject: Re: [PATCH] scsi: elx: efct: remove unnecessary memset in efct_io In-Reply-To: <794191df-e745-c591-bf1d-37945f96e73a@wanadoo.fr> Message-ID: References: <20220318145230.1031-1-wanjiabing@vivo.com> <794191df-e745-c591-bf1d-37945f96e73a@wanadoo.fr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-1463811774-987175101-1651304886=:14454" X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463811774-987175101-1651304886=:14454 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Sat, 30 Apr 2022, Christophe JAILLET wrote: > Le 18/03/2022 =C3=A0 15:52, Wan Jiabing a =C3=A9crit=C2=A0: > > io->sgl is allocated by kzalloc(). The memory is set to zero. > > It is unnecessary to call memset again. > >=20 >=20 > Hi, >=20 > Nitpick: this kzalloc() should be a kcalloc() to avoid an open-coded > multiplication when computing the size to allocate. >=20 Seems like kcalloc() conversion could be a separate patch. Perhaps it=20 could be done everywhere using a coccinelle script. ---1463811774-987175101-1651304886=:14454--