Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1084671pxb; Tue, 29 Mar 2022 16:51:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBDE+e7vMo2BMkmlp5FDGfJa0FZtcEs516XItiXmYu4xpAmpwrigEvfqRyxPH3QCWB8pvY X-Received: by 2002:a17:907:869f:b0:6da:888b:4258 with SMTP id qa31-20020a170907869f00b006da888b4258mr38094471ejc.720.1648597893439; Tue, 29 Mar 2022 16:51:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648597893; cv=none; d=google.com; s=arc-20160816; b=hsFRtTRH61NLpaulvWJRhJtQg9ZCZJ7y9rAqGCX4PtrLiBMrKViuvqgIA952iGZ0A3 8XJRqGAR/Sh0eyYbgovjsqzmDMXnY3z13C7R4YitMYyzsNDklLOHUpj6fuupGS0tuT9P AoO+GFw7sBzR23it4QKbnAY/zNbBTGftZdVuIM3j69ftSN3e1c+0w9d4mhXCruhxl17x LsqAWo5+lyotuP5QrHzVioZLqu2kUV33cfTJd1W+fZ7V3Qb+OOlUA1lDq+JHlWxDRhqo 6VDuWNi+5n6rMWUO5F5eHHOodG8Ixj4iDBMDk2myKQzHnBGHB2Sc58IyOdW8SityqUip cXhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:reply-to:message-id :subject:cc:to:from:date:dkim-signature:dkim-signature; bh=vGp9jGwdHCBsNKzn3RMLekDPtLMAAOka0qtIic71SAE=; b=oVNBFHIkWkt+T3ps3G//1OwLJ+V7+edR4Qq8SWr0/jU0wE7Y9fL64/xm8Wa0MNJb7Z jrnOrN6f/NQf9B7xDCpSNpghUZSfaLM/fUWoWqXSUVN9K+7dPs9FCQI2VJ5eLPnws+ey hv+64ej3xYAuxOAS6kC8UpmQ/PWvmW6FFNxtzgtskoBa150WH7aUoZcz8Az2F38t8g2z r+vblsHf92Z2cNnxhL4hVquDTUQA+8BNjPf9AAplBwMobP0wkbqM9GPvinLH4aKp/p2h o4daZFY0g4DKlu6ppWTVDeXW5lYhsS9zJJNb75QfMLgTGgogziQ4lDqbxyorB8Ur7Kfc f1Fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=ggiJymO1; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=kVCOgDMg; 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 g22-20020a1709064e5600b006df76385ebdsi18548949ejw.861.2022.03.29.16.51.07; Tue, 29 Mar 2022 16:51:33 -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=@suse.cz header.s=susede2_rsa header.b=ggiJymO1; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=kVCOgDMg; 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 S239975AbiC2Q5c (ORCPT + 99 others); Tue, 29 Mar 2022 12:57:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231454AbiC2Q52 (ORCPT ); Tue, 29 Mar 2022 12:57:28 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAA656CA67; Tue, 29 Mar 2022 09:55:45 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 1A2411FBB5; Tue, 29 Mar 2022 16:55:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1648572944; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vGp9jGwdHCBsNKzn3RMLekDPtLMAAOka0qtIic71SAE=; b=ggiJymO1CY5s++AmMmwGPJnw4UdEG2FEjEWzVHtt8rcdIib+Un2/xxXo2m24p8XUF3Wr1Q uCBww4Hgu5uLiM4G68q/TFAkhIOE+daaCjizzaYKhONVEmG2U43HTTdzZbKxs+fmp0dBv0 preMHNRDbeR/kuN1+l5c/h71N+nrdaY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1648572944; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vGp9jGwdHCBsNKzn3RMLekDPtLMAAOka0qtIic71SAE=; b=kVCOgDMg2T+BYorkUFqDGI6jho5rldCiJTpvQSOTIVIYX0hEFpufc3ADFGKUtja90+r9rW euIhI+9rN+UK6bAw== Received: from ds.suse.cz (ds.suse.cz [10.100.12.205]) by relay2.suse.de (Postfix) with ESMTP id 0F2D6A3B83; Tue, 29 Mar 2022 16:55:44 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 51348DA7F3; Tue, 29 Mar 2022 18:51:46 +0200 (CEST) Date: Tue, 29 Mar 2022 18:51:46 +0200 From: David Sterba To: Colin Ian King Cc: David Sterba , linux-fsdevel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] fs/affs: remove redundant assignment to ch Message-ID: <20220329165145.GZ2237@suse.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Colin Ian King , David Sterba , linux-fsdevel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220307150742.137873-1-colin.i.king@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220307150742.137873-1-colin.i.king@gmail.com> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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, Mar 07, 2022 at 03:07:42PM +0000, Colin Ian King wrote: > The assignment of ch after subtracting ('a' - 'A') is redundant and > can be removed. Fix this by replacing the -= operator with just - > to remove the assignment. > > Signed-off-by: Colin Ian King > --- > fs/affs/namei.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/affs/namei.c b/fs/affs/namei.c > index bcab18956b4f..a1270deba908 100644 > --- a/fs/affs/namei.c > +++ b/fs/affs/namei.c > @@ -19,7 +19,7 @@ typedef int (*toupper_t)(int); > static int > affs_toupper(int ch) > { > - return ch >= 'a' && ch <= 'z' ? ch -= ('a' - 'A') : ch; > + return ch >= 'a' && ch <= 'z' ? ch - ('a' - 'A') : ch; AFFS is in fixes-only mode, I wonder how much this change is affecting anybody, from the user perspective. I'd say not at all, W=1 build is clean and that's something I'd be fine to fix, W=2 and W=3 warnings are from other code.