Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp306147rwj; Fri, 23 Dec 2022 01:27:54 -0800 (PST) X-Google-Smtp-Source: AMrXdXsMttn20+d1J4lTS4QF9JozqfSozStlusjmF0EXuAEM7rdC+PJzpjmCzC/lNUlRzmaAsf29 X-Received: by 2002:a05:6a20:94c3:b0:ad:f155:7b5b with SMTP id ht3-20020a056a2094c300b000adf1557b5bmr12078781pzb.13.1671787674495; Fri, 23 Dec 2022 01:27:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671787674; cv=none; d=google.com; s=arc-20160816; b=SqZiQZpH720N80LObskc2c+jhODVCe8sIpPKZRW0Me7xC7/R5s/HH7rXMPRPE68Nzj QYXLf+KUVreeyD/x0jhsbuW0R/Yg58HdWEInF0nhwC1Ew34u4c1Rif6bWCgC+YlMnXD8 qo2RvjMr6DWPRPuYJIf2ljsqITRwu9uT7xPOpyK9mblXYFErkLUh+iK6EUC0szaP72tq rVwqum4YJ18j4pWvkRImgAiboSiiPyOhICBcn9sK7sqzyKZn0j96i/CUdL1paZhFnjrl oymxSc2pnFvv8aZ0nGTH4UqRgkLxd7Wggh9O6krtsJhotfEp30N4nLxp9/+6aXNKwBpH Sx9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ZQJ165Izih8G1Odi3ztDww8mF3CjblcK4zdfwHbPMAg=; b=X1fB/RjtADHHny85/UMPsAeN6EarThTv361NFek3wfn2Z4UPHh0vQAJbdus++g7SfB 4b1ut6XgREfnWBUHEamBm3wvoAobtFm50Fa1h+zqmj/JmMPiG6Jn34wZCGCb5KYSo+Qk onH1750eX7C8JEdzL5HQWb5u5Hf0MWVbRhaQxIyxU9VugWiTu8me09ezr+eiPKpEkNry AtTja2jETfvFa28tK//EXFKmyyL3w2c2XTJbXG/CIOI+qCRDdOLrnVeHOKR+kkbdSNHe gRnRoDvo8nhgo6f2EJFATZTcnTN1j3XCIDOLrl8apQORZKQa8KnzJnFHcDq0uTHknNCi cqZA== ARC-Authentication-Results: i=1; mx.google.com; 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 e21-20020a637455000000b0047697539353si3243029pgn.656.2022.12.23.01.27.45; Fri, 23 Dec 2022 01:27:54 -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; 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 S235120AbiLWILY (ORCPT + 68 others); Fri, 23 Dec 2022 03:11:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229930AbiLWILX (ORCPT ); Fri, 23 Dec 2022 03:11:23 -0500 Received: from mail.nfschina.com (unknown [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ACA5128E14; Fri, 23 Dec 2022 00:11:21 -0800 (PST) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 4D4D21E80D9F; Fri, 23 Dec 2022 16:06:11 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MKTBk26-DdN6; Fri, 23 Dec 2022 16:06:08 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 7C8671E80D96; Fri, 23 Dec 2022 16:06:08 +0800 (CST) From: Li zeming To: djwong@kernel.org Cc: linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?UTF-8?q?xfs:=20xfs=5Fqm:=20remove=20unnecessary=20?= =?UTF-8?q?=E2=80=980=E2=80=99=20values=20from=20error?= Date: Fri, 23 Dec 2022 16:11:14 +0800 Message-Id: <20221223081114.3959-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE 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 error is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming --- 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