Message ID | 20240220062030.114203-1-zeming@nfschina.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-72403-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp220037dyc; Mon, 19 Feb 2024 22:22:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUZ0f2kCLxgtoerEtcOH7H3x5EvuAw9rUkcsnl44aRLTDk0oZEckUnWzh2/Larhen7MT1k9FjevpwsXIuCVHkxQYMawAA== X-Google-Smtp-Source: AGHT+IFbF+BuxePTvy/BWqrc93xfSljHcB02smKxUSxQOny+NT+OB9nPlVBGB7uHjN4oG3djgldA X-Received: by 2002:a17:906:aacb:b0:a3e:d0ab:5fa7 with SMTP id kt11-20020a170906aacb00b00a3ed0ab5fa7mr2045004ejb.11.1708410131229; Mon, 19 Feb 2024 22:22:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708410131; cv=pass; d=google.com; s=arc-20160816; b=sNDvMT6dOPYwQrGDhxcc7qASTrOvNPTg/jLLOs6jiFnTmcIw/O0PoS1VrBb3vRq1YD JkISnXON1rWUHZiE3iIHxwqpTBw5kQ3rUap4HBwIZrZnanqDqc/TR/PlJ0Y9jwQh/fv/ rgnCmy8GSMajYmBAt08Nrws0zzr8sk8qN/Axt+OBhOcG065Sgsml3Hd7lsb31/xV6rmR nwUlN7K3/sIRRF2KGaUW/gX66Q86H6UGSJ+wPX1ECjjHjbbetGy4GawYmy13woEoVdMt 5jAtWjtv+OA3cFa0CEaqobVeyHmgJsubcpioUG4tNJmnmUhZHjwKvIKd7h42ULNSgAET v8yg== 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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72403-ouuuleilei=gmail.com@vger.kernel.org" Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a21-20020a170906685500b00a3ee6999de6si582062ejs.1041.2024.02.19.22.22.11 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 22:22:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72403-ouuuleilei=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-72403-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72403-ouuuleilei=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 2F01E1F2390C for <ouuuleilei@gmail.com>; Tue, 20 Feb 2024 06:21:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D7ABC58ABE; Tue, 20 Feb 2024 06:21:17 +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 <zeming@nfschina.com> 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 <zeming@nfschina.com> Subject: [PATCH] =?utf-8?q?libfs=3A_Remove_unnecessary_=E2=80=980=E2=80=99_v?= =?utf-8?q?alues_from_ret?= 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: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791397861954091350 X-GMAIL-MSGID: 1791397861954091350 |
Series |
libfs: Remove unnecessary ‘0’ values from ret
|
|
Commit Message
Li zeming
Feb. 20, 2024, 6:20 a.m. UTC
ret is assigned first, so it does not need to initialize the assignment.
Signed-off-by: Li zeming <zeming@nfschina.com>
---
fs/libfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Tue, 20 Feb 2024 14:20:30 +0800, Li zeming wrote: > ret is assigned first, so it does not need to initialize the assignment. > > Applied to the vfs.misc branch of the vfs/vfs.git tree. Patches in the vfs.misc branch should appear in linux-next soon. Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it. It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated. Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch. tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git branch: vfs.misc [1/1] libfs: Remove unnecessary ‘0’ values from ret https://git.kernel.org/vfs/vfs/c/297ff2f5a0e4
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;