Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3706342imw; Mon, 11 Jul 2022 14:07:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vmL+3fN10HmWyXOJHRrlWwzoaOh/GeG38jNnQGBoR7q38X4nEc+ua16pYvAUjAwhzzlN1g X-Received: by 2002:a17:907:3e84:b0:6fe:8c5f:d552 with SMTP id hs4-20020a1709073e8400b006fe8c5fd552mr20339602ejc.710.1657573665365; Mon, 11 Jul 2022 14:07:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657573665; cv=none; d=google.com; s=arc-20160816; b=cA+ZFEddDdJirhub1hSVzC29oZAXo/wLxTRnmuffhtSkn2HtN1VR8A9lp45OwgzHT2 dO4H8/0jf8SeY5ue2W31ByMTv1/TxlhpPSxs26dLp7AQl/eCL88kAW+jRSQoSE2+k17R graySNpltzAlc9DH8w8PbO/vzKZe49lZ15B3VQcFSGaPBQr4vRXZ/DqMtVejlZNyRwad WFnfVc1KLSE49Gdnue0ToE4m0RxJvZOTbNuRlkqh0YiN3Dw0noo/boAqs18CX1zSTa3J lpSFFMAW9VrXj+WM0ywZBJ3nEFJBqOlu5GRkY+TVJSVlJdHZ4/1S1JwxOQJ1uGVfewg8 CWlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=olps5CXqXWheewLlxV6LTB0puhoNBy+5adFqCXcy3SE=; b=c2n9qr0oZsuEd1Dau9JwU5Bgi+9x8bVbvS5j8mcDZANjsU2Elj0bBGlWImNKFO7D6g F5Kl6Cck0KjX0UJwmyeONQMEz2BTWNLUNLreAPa8IHvUsAHduMurtevbQd4N1zpI2obU Ayj+WhZvxfTU2+pM+JTz+m1N74MkycpJvujSLYQIPKsFySUrOmPwM3SorbZL1Nf2jhEK 2gBz7Yecj6MiyxT0nOQopTRkbrt97zL0J3QDoh7XGE2clkZ1GuuekTPEAZDRw+albRSs BddVkgqcdM69tg9e6QMfXZvSUPMV9LCgD+HC+WHTyfcp4uDlnVt/6IFqNf4ctyokJ+0D 6RvA== ARC-Authentication-Results: i=1; mx.google.com; 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 y13-20020a056402270d00b0043ad1b75d28si7622880edd.84.2022.07.11.14.07.20; Mon, 11 Jul 2022 14:07:45 -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; 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 S229593AbiGKUz3 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 11 Jul 2022 16:55:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbiGKUz3 (ORCPT ); Mon, 11 Jul 2022 16:55:29 -0400 Received: from relay4.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BC1052475 for ; Mon, 11 Jul 2022 13:55:28 -0700 (PDT) Received: from omf12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id B2B595F8; Mon, 11 Jul 2022 20:55:26 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf12.hostedemail.com (Postfix) with ESMTPA id 409621B; Mon, 11 Jul 2022 20:55:25 +0000 (UTC) Message-ID: <93dc367b01cdfbb68e6edf7367d2f69adfb5d407.camel@perches.com> Subject: Re: [PATCH v3] staging: qlge: Fix indentation issue under long for loop From: Joe Perches To: Greg Kroah-Hartman , Binyi Han Cc: Manish Chopra , GR-Linux-NIC-Dev@marvell.com, Coiby Xu , netdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Date: Mon, 11 Jul 2022 13:55:24 -0700 In-Reply-To: References: <20220710210418.GA148412@cloud-MacBookPro> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.1-0ubuntu1 MIME-Version: 1.0 X-Rspamd-Server: rspamout04 X-Rspamd-Queue-Id: 409621B X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Stat-Signature: chopoje3jzpy9qmb7kz8idsut8dic5gc X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX18/ZwN4JJSNAALDvoh6AB39oIXKePuMAwU= X-HE-Tag: 1657572925-704760 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, 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.