Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3101078imw; Mon, 11 Jul 2022 01:39:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sDqtpFibv0rifowU9ZwM4GsG0uBIZyYeDYI9ZtX15qTUTplXkVstFkuBSBZeMfuDmqyaid X-Received: by 2002:a17:902:d54b:b0:16b:eea4:77da with SMTP id z11-20020a170902d54b00b0016beea477damr17361900plf.45.1657528793266; Mon, 11 Jul 2022 01:39:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657528793; cv=none; d=google.com; s=arc-20160816; b=imgv62pmdJtsb0XKCZ7B4KJGyIr+t+kNLea9/3SQmqyC/wdYOhDQUEPz7iKdG07m6Q /kq7082gspE7KgT+izgdXQifP4pKlcFKLwtRP98o2mfIJDpcz/JGlyqLoJg+JOY1ALJl RrYr1kDK6qGHhkUJYRq2wxEr1Z2zsUo9stqL+pIzk9rEaXjU3CMbjJijZN72almuWfu4 B9RzfhzBFCFvKQC2t0AOwcAIPN99xnOY1F9evwXE67DKexua4pEPUBGhSMU0k15hrhVB NiXMn4NKroq4MIYAYsR8EH3UPWOAKPZ0a3gqp9Vj4BcilwoqvcAU2Q8tqC3lx4dxD9QV psxw== 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=5PuHAsYqobtEUXKkA/rVOBROHkgMlMoiptSioMDmHXo=; b=MqpCwwHPOU9ahKmdqHJ1rRv2cnOmxkwgisK/PUkLuj/kuWGKGETvw82wikSnqT2tYw 9XyukxZm8XcLdeZKv8Vhfx7i+lkYptFbDEBj6FrfEc6pXMjDtBK19CJAoZYYg5DFoZNV I7enwWrouSXHPyfDNWZdjHfXIEAFRGyJBZQ7gLSNmU4av3L+TgfZgnIiJRrONL46WeJc IWsEQPV25gTWhxS4SXWlxyWxmnG8REfg4yLflm1js5Sjx6HfJCi+s1UKxG/eDDG5sVm1 uDON5LwQjhlYKI+2VXCIbdEUl171dUO4UfWQn5ThqsuRutjBnMC9erteTZ08AuTbkEvw /W9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=v1A4TmeO; 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 y13-20020a17090322cd00b0016aa0ab8fb6si10848100plg.595.2022.07.11.01.39.41; Mon, 11 Jul 2022 01:39:53 -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=v1A4TmeO; 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 S229639AbiGKIFV (ORCPT + 99 others); Mon, 11 Jul 2022 04:05:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229635AbiGKIFT (ORCPT ); Mon, 11 Jul 2022 04:05:19 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EBDE1CFDF; Mon, 11 Jul 2022 01:05:18 -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 ams.source.kernel.org (Postfix) with ESMTPS id 25027B80DE7; Mon, 11 Jul 2022 08:05:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 79B9EC34115; Mon, 11 Jul 2022 08:05:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1657526715; bh=q4hZ5dAOv+NEWL4wDWpk+yHIaXbKs/PWCF6KRLMu/O8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=v1A4TmeOjf5P4w0Juk+VqmGfXpqMWOOzO3QijyvW2pesY1ns7ly+dbG8kqjAlHAVF 8IQTd8QBKdBKxCWQemkp7m+QXHDI+MgucdBv4GapsncP6mhmS56DAzBCsMgYn+eYV4 xvyerp/GZ2xiKTi3K8O+b63ZxkaKbggtF5Mo6CBM= Date: Mon, 11 Jul 2022 10:05:12 +0200 From: Greg Kroah-Hartman To: Binyi Han Cc: Manish Chopra , GR-Linux-NIC-Dev@marvell.com, Coiby Xu , Joe Perches , 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220710210418.GA148412@cloud-MacBookPro> 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 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. thanks, greg k-h