Message ID | 20221223081114.3959-1-zeming@nfschina.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp203348wrn; Fri, 23 Dec 2022 00:23:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXuYYgkw4pyj/uhazDQhFe/7RjH/xdow/q6C2LjgE6QoXfSe96UYYJP49QqAIdWKZTezr271 X-Received: by 2002:a17:906:c79a:b0:83d:9588:2ed4 with SMTP id cw26-20020a170906c79a00b0083d95882ed4mr6515132ejb.68.1671783807287; Fri, 23 Dec 2022 00:23:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671783807; cv=none; d=google.com; s=arc-20160816; b=OEpMB8rBlKztkV8CSys2jZS0Qqm/v7R10S9lmh76OV6fri8IcSClwO37GomBdD4sox ZlOeBuG9+OwlVg9zXc13mknyil8YfVvHtoR5Eb9oJ1GIhxRjUJJzwi9FhMqLSowTyVhE B/3CU46tqNT0ZmxKqQzfjzAiD5wcFuXJcPxYkymKlJ5NzsB8VOJdSS2hTZQif6DbAyTz qjEdigwgwHTGKMgvrpAKOzUH+Vw1pPzA3uByzRjH9h/TBJz/6L06ATV/wjW5gmfhpSJu 1scx/rlM6aCnmy73CaBkAA3N0GtLRUzugdYYA/LUOm27NYdS7ju6h7An8IoUrvYi+uXY R+SA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wu2-20020a170906eec200b00840f80a0b03si1941652ejb.118.2022.12.23.00.23.03; Fri, 23 Dec 2022 00:23:27 -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 <rfc822;pacteraone@gmail.com> + 99 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <zeming@nfschina.com> To: djwong@kernel.org Cc: linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming <zeming@nfschina.com> Subject: [PATCH] =?utf-8?q?xfs=3A_xfs=5Fqm=3A_remove_unnecessary_=E2=80=980?= =?utf-8?q?=E2=80=99_values_from_error?= 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752992377619537474?= X-GMAIL-MSGID: =?utf-8?q?1752992377619537474?= |
Series |
xfs: xfs_qm: remove unnecessary ‘0’ values from error
|
|
Commit Message
Li zeming
Dec. 23, 2022, 8:11 a.m. UTC
error is assigned first, so it does not need to initialize the
assignment.
Signed-off-by: Li zeming <zeming@nfschina.com>
---
fs/xfs/xfs_qm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
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 <zeming@nfschina.com> Looks fine to me... Reviewed-by: Darrick J. Wong <djwong@kernel.org> --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 >
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);