Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp810436ybt; Sun, 14 Jun 2020 00:14:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXB+pMElvjp4GvT8ioZG3UIh1apmYwDnHyo6U2RNAIawgyF1L5gicg44WRNOTtDuL37cMG X-Received: by 2002:a05:6402:30ae:: with SMTP id df14mr18340922edb.310.1592118889737; Sun, 14 Jun 2020 00:14:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592118889; cv=none; d=google.com; s=arc-20160816; b=dITyZ9HgygisMwivdLzg/p6iyvR+gTUSgt3AYlzE5u2iD8GHAImfF/MPUVnfokNgLu QaReFdzib9Ll4TD2J6jU99Hqc2Tbl/IMcQ0KL9FkFGmSHXsgEmLpTghDAjFM3+BUupD0 ZMAmOZSieJFIeDU4+ys40VtzoS7/WTO92M62e5TRnlGc5/W/fKXUQnOcFboL3/oDh2xd espe0Zjem6NhMMeAIeKKSBqXOYq02AHtcTHktl2DDfIZKZJeOdPoEACpraTTow4KMvo6 F5+NaJCvyd6Kv2M3bI/J6DoaCg/a2I1lSTJg5NXrylTSSuGZgk0o96qLyJAZ66/dt9TF duzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=u+xTfb2ZGM6ljRc/jF5F3nTlnizEOnKcB51DJRqASQI=; b=HxVGx6jNlaZV9CL+17uW6L5C5Sy67aPArScuW2Xw361QgN8wD21s+k08ppIJIgKbhh VIhxs181IbRjb1ZiKEClLA3BqyBgkeTVIeSxj7TpRMX6OZEAWoZYH4RhZBPDL1d23HnD qt3Tp7A0NMRPf7CVrow1Rritf/meeZccMh1aGjgZlJ9+TQHf/Ox7A/2pdaRVjuHnIsqn 3COkHCKVCAuYntBA/xiz4H8EQ/gc+XZT5KPcvx761t9FjUAlZLfwYV7buZiRA6m9674a ZCe0a13qLWlrtezIyGT7UTmkAPtrDRZRM5eBrvR60Q5d51oy4aRnWR+7wuh15nraASng aeRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=emUfJCiK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m3si6600678ejx.210.2020.06.14.00.14.27; Sun, 14 Jun 2020 00:14:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=emUfJCiK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726856AbgFNHMm (ORCPT + 99 others); Sun, 14 Jun 2020 03:12:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:60810 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725265AbgFNHMk (ORCPT ); Sun, 14 Jun 2020 03:12:40 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 72E7B20714; Sun, 14 Jun 2020 07:12:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592118760; bh=0vN1w9ETUOy/X7MD4cx87lWgTNrDzSyXiwMz9T1CyeA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=emUfJCiKDRvZYA9vTPzurljz+hHAFSsF1POBOJeAZlSsuDkdk+mJU0KsKE45mtvgk ERE3ROK1Akj2xkMvKApmgrwh9s+m+uicxQJxX0nKUpfCBBhBRAXLSkHVErHU437Wzx 9yUjfCV0OuK0m1KnLN8T9x4L6khXelo1AHYMkvjc= Date: Sun, 14 Jun 2020 09:12:35 +0200 From: Greg KH To: Markus Elfring Cc: Kaitao Cheng , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Alexey Dobriyan , Colin Ian King , Muchun Song Subject: Re: [PATCH v2] proc/fd: Remove unnecessary variable initialisations in seq_show() Message-ID: <20200614071235.GA2629255@kroah.com> References: <20200612160946.21187-1-pilgrimtao@gmail.com> <7fdada40-370d-37b3-3aab-bfbedaa1804f@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7fdada40-370d-37b3-3aab-bfbedaa1804f@web.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 12, 2020 at 06:45:57PM +0200, Markus Elfring wrote: > > 'files' will be immediately reassigned. 'f_flags' and 'file' will be > > overwritten in the if{} or seq_show() directly exits with an error. > > so we don't need to consume CPU resources to initialize them. > > I suggest to improve also this change description. > > * Should the mentioned identifiers refer to variables? > > * Will another imperative wording be preferred? > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=b791d1bdf9212d944d749a5c7ff6febdba241771#n151 > > * I propose to extend the patch a bit more. > How do you think about to convert the initialisation for the variable “ret” > also into a later assignment? > > Regards, > Markus Hi, This is the semi-friendly patch-bot of Greg Kroah-Hartman. Markus, you seem to have sent a nonsensical or otherwise pointless review comment to a patch submission on a Linux kernel developer mailing list. I strongly suggest that you not do this anymore. Please do not bother developers who are actively working to produce patches and features with comments that, in the end, are a waste of time. Patch submitter, please ignore Markus's suggestion; you do not need to follow it at all. The person/bot/AI that sent it is being ignored by almost all Linux kernel maintainers for having a persistent pattern of behavior of producing distracting and pointless commentary, and inability to adapt to feedback. Please feel free to also ignore emails from them. thanks, greg k-h's patch email bot