Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12201798rwl; Tue, 3 Jan 2023 10:29:24 -0800 (PST) X-Google-Smtp-Source: AMrXdXubNQvDn6Tu3cy8arlXMsB/UR5LX81bUDjGIuA+CAmwkh9A36ENITr87JwOUXfzSq1phoPH X-Received: by 2002:a17:906:2854:b0:7c0:e30a:d3e5 with SMTP id s20-20020a170906285400b007c0e30ad3e5mr36280178ejc.18.1672770563971; Tue, 03 Jan 2023 10:29:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672770563; cv=none; d=google.com; s=arc-20160816; b=rKP9xVWFOF+dRIkE7JgswZh5oAKoJyQct/MIBt4UNfZjkp9aJX8Rhfpb6E0tQ8sLSG VQNIplwWUDLPX86Yfckp9GM1ge7uPI0G93SYOvkVKGfEaB8p2N7vBnhmUT6/KUvly7iO UyhPKsz6XEbsx4VESFPP4ByQdIySDW8vJRcwKz69yBXMtrsve6VLCBkQLzdslJwJsh1D yJg74Iq/HrY696arFuKOnYV+QewAqWtcSACxh2XW60croJFZYpEeAW6dWPAGqZ0lrxti cGffxRIlIXNg89xeq+DsSbg1eu2mQUS11bI2rQXaJnAyablZrgCFctDkC4MqhBRpzrfN eUbw== 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=PaDlH7mBNUIR324ffvN3GiEc1pK2VjEyrrBIN3C4yak=; b=yK8eYgJStTzCU2p8bN5zP/7tJGypwCvO6ukubg+lrFDx7/wM2U1mkAE71n6jRv+s+u Fsx+c+PWYxrQjCfdaJ08STtGyb/1XsJn0NjtImgE8H474066AiF/tF+EbWdg2Mn5sL06 Ah2m8VsIBYeaJLcRjSpfytOu4hKFG5akFrCVvCaI7KuSFXqY4ZaXRvgK1vn/oRepWwN/ OvKgVSWRjavFRDAwVpdSfo/PatPnAqPZvnEWz0hGtaihtZWwGN61CHwVJ4MQnktwKz3K ZpGfvM/9vjVKb0RV4jZA2C+7wf7J+OHyH0o83DfMUtC7OnxIu6JO3ZuSFCsEd/zn/1fU DMDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FP5AbZrE; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb24-20020a1709077e9800b0073d71124609si28755039ejc.182.2023.01.03.10.29.09; Tue, 03 Jan 2023 10:29:23 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=FP5AbZrE; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238598AbjACSHu (ORCPT + 60 others); Tue, 3 Jan 2023 13:07:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233912AbjACSHr (ORCPT ); Tue, 3 Jan 2023 13:07:47 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A949AFCE9; Tue, 3 Jan 2023 10:07:46 -0800 (PST) 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 66406B8104D; Tue, 3 Jan 2023 18:07:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22B02C433F0; Tue, 3 Jan 2023 18:07:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672769264; bh=hc462o+l9XpW/Q/bFPST6QDkeqeth8pIAYp1w1HJQZQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FP5AbZrEOtmHBHdANpGNCQZKFkyicUUXDoC8ttFDGXEQZsbjbbw5lZDtCGbEJQtty AzfSq9qdwxDi0TTM0WTseOGf8Hr6SgGzxztjyRERB4f+MxvN4ZAKWnrlRTcNAMgNPu tFCzNN7G1lMXbtKBwYKLmN0Uhhl/XMY0I3WGnDemVSxyJtAjNqDjzoD0B2fzm/BtGl d+XycUhOianWlKhN34E5KYZC0A2g8/D0QPLXe/rm5cRUaoaxOEhePVvP2LV0DVCgCf f8em16RlUp815HtBBycs5RgH0kTdRshl/dL+Fiso8+xkF0h9wCMN424Km5IyOmbpe9 LwVm4XHje+pzw== Date: Tue, 3 Jan 2023 10:07:43 -0800 From: "Darrick J. Wong" To: Li zeming Cc: linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] xfs: xfs_qm: =?utf-8?Q?remove_?= =?utf-8?B?dW5uZWNlc3Nhcnkg4oCYMOKAmQ==?= values from error Message-ID: References: <20221223081114.3959-1-zeming@nfschina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221223081114.3959-1-zeming@nfschina.com> X-Spam-Status: No, score=-7.1 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 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 Fri, Dec 23, 2022 at 04:11:14PM +0800, Li zeming wrote: > error is assigned first, so it does not need to initialize the > assignment. > > Signed-off-by: Li zeming Looks fine to me... Reviewed-by: Darrick J. Wong --D > --- > fs/xfs/xfs_qm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/xfs/xfs_qm.c b/fs/xfs/xfs_qm.c > index ff53d40a2dae..e2c542f6dcd4 100644 > --- a/fs/xfs/xfs_qm.c > +++ b/fs/xfs/xfs_qm.c > @@ -68,7 +68,7 @@ xfs_qm_dquot_walk( > > while (1) { > struct xfs_dquot *batch[XFS_DQ_LOOKUP_BATCH]; > - int error = 0; > + int error; > int i; > > mutex_lock(&qi->qi_tree_lock); > -- > 2.18.2 >