Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4164572imw; Tue, 12 Jul 2022 03:09:44 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vxEpPWy+/zKOrQOJHpmqE/aHx4tVkHvkTfoPTOOPrRdmF10QBgOEOuqZBU10oZY6jynPv9 X-Received: by 2002:a63:c143:0:b0:416:2141:9a4 with SMTP id p3-20020a63c143000000b00416214109a4mr4912563pgi.15.1657620584321; Tue, 12 Jul 2022 03:09:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657620584; cv=none; d=google.com; s=arc-20160816; b=OsgxD4CYjd5ElXxmo4FVnYWuPpIszqrVi52YE8vLFHPjUVeZ7WZrVNa9GxJfAvBvj5 +nECSv0FsqVRq+rtUgxE5B4G0XELERx7Xh4AMqHc0oKRAkAZcF9AHT+ww52TiNpW97+f V3g1AtMQtU/IgbX47g/7fosbrdUS7s0IzPPMZF8pD3z95uCPVAw2q+wdAlxmhrU5/ZsS sEw2YU3QCm3rFBpOctyYyrEuO/EMCj8tZAvdFX7YbDLlDYkLpECNJiZ1osfCqiybc3o5 A/kkmu+uVpy3XJKtT7e9myYNn1p21GWLcwO4JNWBvYu5ULfmePCqwrgGkbVXFLXMh610 0hDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mHgqxIXpU1Iv5ENzLZHtt2KNSaAoJ03mr8cGnfg/7lk=; b=tnDXBwoMCkpUXnynEcWt2qZIFXWjVhBrr0aEz3fZ46tSXYOfW54a+aIqQvHmJGtAP/ yNGIJZ8l8cCCwh6uWgIk7QtdTSq8dP7RfJXCyRFgeGeD7dXc4EEUY+m8Fe2BHSTn40d3 DQ+KK0UF1qKZBGxKmhmwd1/DS9WOvhHa6VDSFgMgJmGqJp1t48kA3rgbPz/RSszNbtlT X8zwiSeO95eSZV8Ft7a1pamMCGSVms5kicM9Yrmmqvr1wAD6L/TQl5MsY/R1Bte2oaqR dX/GDEcGFbiJcOelV3pRaI1/rGVYPSyiN/6mJiLftgPTnpjR7AVJwjUR4ah0yYgCWCsH U0FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PAzXLXai; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p12-20020a056a000b4c00b0052ae4754922si2734185pfo.153.2022.07.12.03.09.27; Tue, 12 Jul 2022 03:09:44 -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=@linuxfoundation.org header.s=korg header.b=PAzXLXai; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232754AbiGLJoy (ORCPT + 99 others); Tue, 12 Jul 2022 05:44:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232726AbiGLJor (ORCPT ); Tue, 12 Jul 2022 05:44:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE135AA742; Tue, 12 Jul 2022 02:44:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7882F61768; Tue, 12 Jul 2022 09:44:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 034D0C341CE; Tue, 12 Jul 2022 09:44:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1657619084; bh=HJVV8hXX5II2o8jaxx4kBpml75YDJf76DdzCbI/DI8I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PAzXLXai9OffFoUCYP++XvyDEluh5YLJelM6/AZIriftppqi/2qDF+5PfMw+dAq72 6BZSR8muT7UA/O3nSNJotzofVa8+Yw7qNFi1X9lDzvpVcG0bR+OgOEPLlYMg2tcI6V DQGxegRYp4B0p1Qw9v3fW3ByM/Dh/LRGvvqoNLXk= Date: Tue, 12 Jul 2022 11:44:39 +0200 From: Greg Kroah-Hartman To: Joe Perches Cc: Binyi Han , Manish Chopra , GR-Linux-NIC-Dev@marvell.com, Coiby Xu , netdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] staging: qlge: Fix indentation issue under long for loop Message-ID: References: <20220710210418.GA148412@cloud-MacBookPro> <93dc367b01cdfbb68e6edf7367d2f69adfb5d407.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <93dc367b01cdfbb68e6edf7367d2f69adfb5d407.camel@perches.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Mon, Jul 11, 2022 at 01:55:24PM -0700, Joe Perches wrote: > On Mon, 2022-07-11 at 10:05 +0200, Greg Kroah-Hartman wrote: > > On Sun, Jul 10, 2022 at 02:04:18PM -0700, Binyi Han wrote: > > > Fix indentation issue to adhere to Linux kernel coding style, > > > Issue found by checkpatch. Change the long for loop into 3 lines. And > > > optimize by avoiding the multiplication. > > > > > > Signed-off-by: Binyi Han > > > --- > > > v2: > > > - Change the long for loop into 3 lines. > > > v3: > > > - Align page_entries in the for loop to open parenthesis. > > > - Optimize by avoiding the multiplication. > > > > Please do not mix coding style fixes with "optimizations" or logical > > changes. This should be multiple patches. > > > > Also, did you test this change on real hardware? At first glance, it's > > not obvious that the code is still doing the same thing, so "proof" of > > that would be nice to have. > > I read the code and suggested the optimization. It's the same logic. > > I appreciate the review, but it looks quite different from the original so it should be 2 different patches, one for coding style changes, and the second for the "optimization". thanks, greg k-h