Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3292660lfo; Mon, 23 May 2022 00:53:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznL2RpI0oXQGFVkPWK2PZbgoPIORE+R3Cu3nlkt5DdB+33WN5BmPeY9GtK5e9PScZem0LM X-Received: by 2002:a63:f0a:0:b0:3c6:e825:2431 with SMTP id e10-20020a630f0a000000b003c6e8252431mr19068052pgl.166.1653292426135; Mon, 23 May 2022 00:53:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653292426; cv=none; d=google.com; s=arc-20160816; b=UBK5FZS155D4Hb9T2vjSCrnJHhmS2seJz7arNlhKG+kOKkUzwNOadm0BSgPI3PnLjW VbjuKmBgGFqEdU8wczwW+IiOsgOi/Bg2FRQ3CkgxdX1sEotO7PU3DhQFh147l5pPPGxA WK9rhhxk07NhOONMzGN6Vd92/8RfuQAoNPunupMKjD9D15VQzxBHFZhVx7DCNJ7q3Sd9 KnNIoGyG9sM3JK+ETMCztwP4buAsbjUZPOx+30fuAFrg6BLNTQwPmvZ8qyU9qLMXPilw XqjAB0uV+vEynsLqFIlvbrajGVtHQHpS6SeJJ57G+ph5zpqVhdyllNewwacddVbJ4wS9 QlWg== 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; bh=0xo1uUTSH0IaDGV/ASSgyoCxesePYZtQnJ6ZOXlP24w=; b=MZZCzdLVgHSgNH00GRNVCy5EjAvEW1KPlcJBbkg0C9L8I5cjKvfSUX/8tXx2+dr2On W/ir3S7A0B1aym1HFH5oSqfCGcqYiR3wpu8AuNMIbVnGtXUNW7pd+01k3rkjAipuhNew Vq/kGSnCM13z8r9wyQqFbC6KgARmJGRdBoPEuSByYh4v1oqCcGTr7BZ6g+5vs3qSBkWI udfj4qckA1v8vCPsZD1nGEy3W5QHWN+UUvKe6xk/XeB989vcfKDxkd1w0MUEkW9eDXWh y7A+95Ufg3epHmPX0zsS4EL3uGDw9rxa3rZnFXysENsDI+gT+qb0qhBoXKw1pa6XRp3B v49w== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id f8-20020a170902ce8800b0015d49076c06si10182220plg.336.2022.05.23.00.53.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 00:53:46 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8749825472C; Mon, 23 May 2022 00:01:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345314AbiETEhl (ORCPT + 99 others); Fri, 20 May 2022 00:37:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345232AbiETEhi (ORCPT ); Fri, 20 May 2022 00:37:38 -0400 Received: from mail104.syd.optusnet.com.au (mail104.syd.optusnet.com.au [211.29.132.246]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CDF3A8CCFD; Thu, 19 May 2022 21:37:35 -0700 (PDT) Received: from dread.disaster.area (pa49-181-2-147.pa.nsw.optusnet.com.au [49.181.2.147]) by mail104.syd.optusnet.com.au (Postfix) with ESMTPS id 9EEF9534526; Fri, 20 May 2022 14:37:34 +1000 (AEST) Received: from dave by dread.disaster.area with local (Exim 4.92.3) (envelope-from ) id 1nruOL-00E7Sy-70; Fri, 20 May 2022 14:37:33 +1000 Date: Fri, 20 May 2022 14:37:33 +1000 From: Dave Chinner To: Jiapeng Chong Cc: djwong@kernel.org, linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, Abaci Robot Subject: Re: [PATCH] xfs: Remove the redundant assignment Message-ID: <20220520043733.GK1098723@dread.disaster.area> References: <20220520040518.73957-1-jiapeng.chong@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220520040518.73957-1-jiapeng.chong@linux.alibaba.com> X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.4 cv=VuxAv86n c=1 sm=1 tr=0 ts=62871b0e a=ivVLWpVy4j68lT4lJFbQgw==:117 a=ivVLWpVy4j68lT4lJFbQgw==:17 a=kj9zAlcOel0A:10 a=oZkIemNP1mAA:10 a=SRrdq9N9AAAA:8 a=7-415B0cAAAA:8 a=P0sVBlT4rgpVDXflfFAA:9 a=CjuIK1q_8ugA:10 a=biEYGPWJfzWAr4FL6Ov7:22 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Fri, May 20, 2022 at 12:05:18PM +0800, Jiapeng Chong wrote: > Variable 'ifree','freeblks' and 'itotal' set but not used. > > Eliminate the follow clang warning: > > fs/xfs/xfs_log_recover.c:3534:12: warning: variable 'freeblks' set but > not used [-Wunused-but-set-variable]. > > fs/xfs/xfs_log_recover.c:3535:12: warning: variable 'itotal' set but not > used [-Wunused-but-set-variable]. > > fs/xfs/xfs_log_recover.c:3536:12: warning: variable 'ifree' > set but not used [-Wunused-but-set-variable]. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong Looks like it's been that way since 2010 - commit 1414a6046ab4 ("xfs: remove dead XFS_LOUD_RECOVERY code") removed the prints that dumped the differences between the in memory counters and the calculated values.... IOWs, this entire function is dead code and has been for 12 years now. Can you just remove it, please? Cheers, Dave. -- Dave Chinner david@fromorbit.com