Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 09CF0C27C76 for ; Wed, 25 Jan 2023 17:23:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235248AbjAYRXt (ORCPT ); Wed, 25 Jan 2023 12:23:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235311AbjAYRXl (ORCPT ); Wed, 25 Jan 2023 12:23:41 -0500 Received: from msg-2.mailo.com (msg-2.mailo.com [213.182.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01C9F5C0FC; Wed, 25 Jan 2023 09:23:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1674667382; bh=RyDTlzZ7J1y305xWPRZw5jruHPoo4gvTvMQCnixJLR0=; h=X-EA-Auth:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=TUAqewYij+dtOlSbbJe7CrNmIBVFnj26s+S+FLzM1FY1j2BF/o9Uhso3eG+7wSnsx cTgOHStWbHvGa55y48lMks1CSbZaIpVQuegcJhpvkhgVNYWfWiFGHxlBnHQ82Pbhpn piKkt6ZXMAahs7rRUY4n2Fo9bXL/gEFOwBaPxLCg= Received: by b-1.in.mailobj.net [192.168.90.11] with ESMTP via ip-206.mailobj.net [213.182.55.206] Wed, 25 Jan 2023 18:23:02 +0100 (CET) X-EA-Auth: HQuo9TwHAXidIJHtCp9wA/lPloIDL12a5h9SO3eXjXRuNFKy3FguTuIATyAlgLErKwQLtyIIJXnskMU0adMhtDqrRzGfY5kG Date: Wed, 25 Jan 2023 22:52:56 +0530 From: Deepak R Varma 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 Cc: Saurabh Singh Sengar , Praveen Kumar Subject: Re: [PATCH] scsi: qla2xxx: Use a variable instead of repeated computations Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 25, 2023 at 10:17:54PM +0530, Deepak R Varma wrote: > Use a variable to upfront compute memory size to be allocated, instead > of repeatedly computing it at different instructions. The reduced > length of lines also allows to tidy up the code. > Issue identified using the array_size_dup Coccinelle semantic patch. > > Signed-off-by: Deepak R Varma > --- Please ignore this duplicate patch. I got this from a wrong/old branch. My apologies for the inconvenience. ./drv