Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2074438rdd; Thu, 11 Jan 2024 20:22:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IGhg5oBWqQbIu/Exfd+pEKJXfFxGlXLbzlXRw9gOmy0f2Wu3iu4lxKcN/r4y0soWKBsFxcL X-Received: by 2002:a05:6830:1e4f:b0:6dc:546:f30e with SMTP id e15-20020a0568301e4f00b006dc0546f30emr838212otj.58.1705033334178; Thu, 11 Jan 2024 20:22:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705033334; cv=none; d=google.com; s=arc-20160816; b=A1UeTW1w99C4R4SGePsEmMHq7kcttdnNbRYpngLWBGmuCHbRkJeUewKYuZKl80OKgj HGu8Co7A3Z0TNbbgUGp+pop/Vf3a6P/mmcGYaunpfYu59Mr5hWxhsDMAbufTDDn/U9O+ htLEhlzdpQ7fbZwOfBn4gsGj2ENpsgSlA/s8NHnCDuELYf2pkB3OguphJSZ4FLZU0bK6 coJFpvCtMUH49lY4hM8gaE7UcNgb82gSJzDOVDyyvrHp8JM3yuJTru9/fSCdkBpL+ZG/ GpZ2+pacitfHo+PijHAfpTa/4DVFAgMSK9TLsMarjmDbW6/rSGa4KOVlHKWCQc6g37r/ CUmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=f3vsch5zVj1FUcQMbihdSeaR/JhJVz692MIawuEAey4=; fh=FZ5y/C35o2eeUyMvRFw2/roWmV58xX9gNfmze8ci9ok=; b=MXuLIqzxlee/m03LFEcSf11ZOnq9xcnUJM0cPG3G74HlpT+73U+rtvcR53ePBCGtl+ x0thd5qEbqmztpOcu0m5YgzaxqDDFjBanpXxu5RNb1LXrwNYPbjOwnRudsbcPL5uU6GD hSxQWZY8zuyIi3rmGJ+T26O6Jmq7uBcEQINi+H2JABMa+ludsSz8DRF4bMHqpllziwxv Udo3M78EEA21m8Wu0HQA7sVWTYulf5/DCeqv+zqtHa3OX9IJpoak76pC/nzEkwtxQ9Yb jvCUNolwjdL5xdr5WLLSLvd6SXhbEnc+xDckRhebJmDFeiuGnTA3r6/sQwL1qSaZW4wj LroQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-24285-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24285-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d34-20020a631d62000000b005855f67e490si2524227pgm.690.2024.01.11.20.22.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 20:22:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24285-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-24285-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24285-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 78A52282D35 for ; Fri, 12 Jan 2024 04:22:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 97DE329D07; Fri, 12 Jan 2024 04:21:46 +0000 (UTC) Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id E937A1B290; Fri, 12 Jan 2024 04:21:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nfschina.com Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPSA id CC6B9604F047A; Fri, 12 Jan 2024 12:21:37 +0800 (CST) X-MD-Sfrom: suhui@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Su Hui To: nathan@kernel.org, ndesaulniers@google.com, morbo@google.com, justinstitt@google.com Cc: Su Hui , akpm@linux-foundation.org, mudongliangabcd@gmail.com, hch@tuxera.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, kernel-janitors@vger.kernel.org Subject: [PATCH] fs: hfsplus: fix an error code problem in hfsplus_sync_fs Date: Fri, 12 Jan 2024 12:21:27 +0800 Message-Id: <20240112042125.3930667-1-suhui@nfschina.com> X-Mailer: git-send-email 2.30.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Clang static checker wanrning: Value stored to 'error2' is never read. Fix this typo error by assigning 'error2' to 'error'. Fixes: 52399b171dfa ("hfsplus: use raw bio access for the volume headers") Signed-off-by: Su Hui --- fs/hfsplus/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/hfsplus/super.c b/fs/hfsplus/super.c index 1986b4f18a90..9f45582faf36 100644 --- a/fs/hfsplus/super.c +++ b/fs/hfsplus/super.c @@ -233,7 +233,7 @@ static int hfsplus_sync_fs(struct super_block *sb, int wait) sbi->s_backup_vhdr_buf, NULL, REQ_OP_WRITE | REQ_SYNC); if (!error) - error2 = error; + error = error2; out: mutex_unlock(&sbi->alloc_mutex); mutex_unlock(&sbi->vh_mutex); -- 2.30.2