* [PATCH] libfs: Remove unnecessary ‘0’ values from ret
@ 2024-02-20 6:20 Li zeming
2024-02-20 9:25 ` Christian Brauner
0 siblings, 1 reply; 2+ messages in thread
From: Li zeming @ 2024-02-20 6:20 UTC (permalink / raw)
To: viro, brauner, jack; +Cc: linux-fsdevel, linux-kernel, Li zeming
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(-)
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] libfs: Remove unnecessary ‘0’ values from ret
2024-02-20 6:20 [PATCH] libfs: Remove unnecessary ‘0’ values from ret Li zeming
@ 2024-02-20 9:25 ` Christian Brauner
0 siblings, 0 replies; 2+ messages in thread
From: Christian Brauner @ 2024-02-20 9:25 UTC (permalink / raw)
To: Li zeming; +Cc: Christian Brauner, linux-fsdevel, linux-kernel, viro, jack
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-20 9:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-20 6:20 [PATCH] libfs: Remove unnecessary ‘0’ values from ret Li zeming
2024-02-20 9:25 ` Christian Brauner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox