Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp469243lqb; Wed, 17 Apr 2024 01:33:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXbWcQ/xF8Z4hpx7ewSOnMYJt/K07O99a+C6b2h8EkWUrWVZwI/d7i3qGYyHUKZFafb1XYYmPx7GhGOTKYuec9mF+EnhLabPs0hWHylsw== X-Google-Smtp-Source: AGHT+IE2ODGDUqYGSyTiGTUQSzGsYj6pS5FcDgBvf2MhGBl1y7IV8ZLtaHxqTqfh+ryH9rrpy1LM X-Received: by 2002:a17:907:84b:b0:a51:a288:5af9 with SMTP id ww11-20020a170907084b00b00a51a2885af9mr12571050ejb.51.1713342814104; Wed, 17 Apr 2024 01:33:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713342814; cv=pass; d=google.com; s=arc-20160816; b=dJKXOkL+/UjPT3UlnHQpVeP9uf+sz0vtpv/6ZsSLsTa2nt8Mr3lU1ibnqxn+BEfXZs drTyQgQrxlPDClUyb5LoBVR+8woPpzIWq86qjCCVdM53BbkfDjb0bv8pfe6aEV5XbXP+ j0IGzX+w1rVwMuzOisPpqKdz/OIfFbvRKbkUSMRUJJYu5Q+wmkdcrigk6z2Kly21ESL2 tLyK0Ux+RPo2kiCCchIuzRoJVkOkhqLgLPbnOrljPDe/tFknT7S55KockXpNnYLTaZ/S 2F23KRlqzv7IWTsMK4oP8Mh4qZ3nX4C7Zpv2Y2+0dnPpt06fbuk37IU0yiTk2Wd6xhG8 CZvg== ARC-Message-Signature: i=2; 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=65hmZQlQKmn96NGmxsi3JSv69jFcaS0F7Zl/TxSGkZ0=; fh=4fVmOD97gcrA8US9cGUb1bAbOgW8I8Or9S5wP5YgRr4=; b=QR7Sqq0xnzYcWzxf/zaLwHR6Gz+hXdMEj7ybFKfJF21prG8dfER5ZyvrBI0MMCn1Nr RBK0n9ho0An0vvUHfrV0fOmNBKNxLl8ukqCTKLCD9+0PL/bYHLJAwsWQwy1pXGNN0oOw kVuJb+iP+STkcwN+s+Q82OjIvruzAG82RmpFgc6wj0mxLyT0GeZnkkVTwdPk0u6U45MD Dv0CthBbXoR6M2itBB1YlNibP2eoW62tOI+Br7L+7p8FYlsdhqSd0lTFhcgVrFQNl61B WL1cDdonZn0ZKeJRCDKSBceTyaZvxLIHaM2CL6LMUDl6jLKAyc3nAoEnuVM8CqNAVJwy 69Dw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-kernel+bounces-148152-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148152-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id qb24-20020a1709077e9800b00a51ca8f97e5si6755248ejc.439.2024.04.17.01.33.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 01:33:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148152-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-kernel+bounces-148152-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148152-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 am.mirrors.kernel.org (Postfix) with ESMTPS id CE3F11F21F62 for ; Wed, 17 Apr 2024 08:33:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AA7E1128372; Wed, 17 Apr 2024 08:32:19 +0000 (UTC) Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id 4E36458ADE; Wed, 17 Apr 2024 08:32:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=42.101.60.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713342739; cv=none; b=nygRaRPxJe3RGvKbXlUneT5dI5RonQ3AOQ/hRgykw/T9WCDWU/Db+RhQKf9ht5lv9kiF0L4r4rubSV+TIeeDAR5Pijow1A/Hxx+W9OFAME5vuC4Q/R7BGuDW1CtsH2E+2rJEd0eKs2VkaYSyXU/KmLGP7Z6xzvpBzekpU4/fR4c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713342739; c=relaxed/simple; bh=iD9NnLJfAZU8fCgqT+cPRna6Exsx7/eFsEB1T7DYLNw=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=gv3eQ7OZh2hgvsQz/GdShj0DIxkQnGAF7gEY24hZEKFL35KJlee2sa1JWejos8/uVWbQTN/MiH1AnZwGU1Z0D1R/aoVxOhQ6LOCips+XaxLXQAqW9YO+Fz16W5ImH3HudHKDil7tCZJFRqFnddwYQVBJ0zOnKqUYDEprsFrzBYc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com; spf=pass smtp.mailfrom=nfschina.com; arc=none smtp.client-ip=42.101.60.195 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 398FA6061BF44; Wed, 17 Apr 2024 16:32:11 +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 , viro@zeniv.linux.org.uk, brauner@kernel.org, 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: Wed, 17 Apr 2024 16:31:36 +0800 Message-Id: <20240417083135.2245257-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 (scan-build) Warning: fs/hfsplus/super.c: line 236, column 3 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 97920202790f..5ee9cbccdff9 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