Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1550426rdb; Mon, 19 Feb 2024 22:21:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVdF1QCQrvQhRcaZ566BJ6UYvss9FMPYLoDrriuhpgCb7Khx7Ncvvmzp/2t/88o9WPEdFdfDoehtOd15FU9OLdCEUKvxnEnoyP4X589gQ== X-Google-Smtp-Source: AGHT+IHIi1bRm6kx9dsH5iT7BtkqhZGDnNrSIfrVWVCBRAQ2PS0UTU2tvjHvYkLbph/BLSyiRTJe X-Received: by 2002:a17:90a:12c3:b0:299:c64:fae8 with SMTP id b3-20020a17090a12c300b002990c64fae8mr11916234pjg.39.1708410087754; Mon, 19 Feb 2024 22:21:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708410087; cv=pass; d=google.com; s=arc-20160816; b=Zy03t2Wwq1dDS+EIHVKP9ZWzRN1R2sShg25smJeqDrEY6JG720g2idDHC9oNygq28X ByEAOxuquGnqZfVV+jrvnp3L1czxRceq3bYEysK4GqHAMRcslDcNSoTP1XEUubugxrnl nQpko1WyRjMNGIXagBdNW+WIbZRfc3Lrcntdo0RkeWrW6tddMmiV6G8QU6zLaHSJxMVF F/Pf0ijhMiwO2t/KXFOy/8H9poCiu5VlVl2u19mx5WYcmB5devu8Kjl7aFZQeMJ0/SwS iHyeD9Wk8fUJsUTz46mmWDJToHJQcen4Rp9Lfti5BpC6PyZ2Bxavt2UwDbDO+MX8baPL 0WXQ== 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=gvgpEjNmUx8xAPtOzWq09Xlj32xF6o/WFt/dutuZ/JY=; fh=UldzeiBGrmnk2r/FpTayByHXb1J3mBOINxtBnjayrXg=; b=mYctoobbY7GC/ywBGB6AoZ7wRygYMHKbPC7h+CWKlXu2fYmjtP0enst9r229RMT1ap HRupGIoqd4AERqv+xIHDNgpEUy6kF+o0LnVBD4Sp18wKGYqYKzNMC4uPDG3SXUzWxwSx E//2vWhecmd1d2/cBrutq0jal82VBYIqu6ApEC5vvvBVWKOKpOZnmnmaOmPNcD/qXtZY IfyUiGpmqGLRR2MZYu/Q66dmLa8gsm4AhPBxt9A4EsNmMllKr7YqqmcQYU7bCKcDBzz7 v1avjkv/zGQU6GbfFnSbWb5dVlvOS/qdc05eDxpY+kZN+a9BXmekddhmroSD33h4529m 25ow==; 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-72403-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72403-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ip12-20020a17090b314c00b002997cec766bsi4025245pjb.94.2024.02.19.22.21.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 22:21:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72403-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-kernel+bounces-72403-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72403-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 95BFF283D9C for ; Tue, 20 Feb 2024 06:21:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E25D15822C; Tue, 20 Feb 2024 06:21:16 +0000 (UTC) Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id 6FFEE56B7F; Tue, 20 Feb 2024 06:21:06 +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=1708410076; cv=none; b=uLvmb0JXKNjN9hEB2n54PsbTPMhir9Z2w8omsOoiKVxyx6oeY3PC6s0NDbBJ1N6a4RXnp/b7uCqVRReNmgfXXm5C0sFPZDisq7417Rbsgkuk7dfV89P1OaOuQH1SB/wPrUwrV59wWg1hAByXFBmhUEXb7p84GJS/VgwWNJV+UJ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708410076; c=relaxed/simple; bh=UxozkFqYq+6YuffM6H+3Z55846NPBPLLV9n15Cq2Fi4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=KajT7MYY/7DRwX+9nj2CYurFSvJAR5eB7zUlBX/nsdvDnWGLJB13uUjywFET6YSDk7EfvFSjTlIDSlDKIxr/LhU73SlwswGxx51SkoUDNJ+b8tt7vLcyxR6V4SDslT+ZdmQd4vZ3G9qRHAXK3ARuWAKD7/uGQ5loEReetZCrq3k= 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 [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id B0A9F6026522A; Tue, 20 Feb 2024 14:20:37 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: viro@zeniv.linux.org.uk, brauner@kernel.org, jack@suse.cz Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?UTF-8?q?libfs:=20Remove=20unnecessary=20=E2=80=980?= =?UTF-8?q?=E2=80=99=20values=20from=20ret?= Date: Tue, 20 Feb 2024 14:20:30 +0800 Message-Id: <20240220062030.114203-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ret is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming --- fs/libfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/libfs.c b/fs/libfs.c index eec6031b01554..6fb8244b259e8 100644 --- a/fs/libfs.c +++ b/fs/libfs.c @@ -1752,7 +1752,7 @@ static int generic_ci_d_hash(const struct dentry *dentry, struct qstr *str) const struct inode *dir = READ_ONCE(dentry->d_inode); struct super_block *sb = dentry->d_sb; const struct unicode_map *um = sb->s_encoding; - int ret = 0; + int ret; if (!dir || !IS_CASEFOLDED(dir)) return 0; -- 2.18.2