summaryrefslogtreecommitdiff
path: root/fs/libfs.c
diff options
context:
space:
mode:
authorLi zeming <zeming@nfschina.com>2024-02-20 09:20:30 +0300
committerChristian Brauner <brauner@kernel.org>2024-02-20 12:24:48 +0300
commitbae8bc46987ed8b9e8d00d0a87ac698a85d15904 (patch)
treee4a620ef38dddac78f77f64184f9b14066cd2262 /fs/libfs.c
parent39a6c668e4e78c3bc262c24d9aabd0a49027f948 (diff)
downloadlinux-bae8bc46987ed8b9e8d00d0a87ac698a85d15904.tar.xz
libfs: Remove unnecessary ‘0’ values from ret
ret is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming <zeming@nfschina.com> Link: https://lore.kernel.org/r/20240220062030.114203-1-zeming@nfschina.com Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/libfs.c')
-rw-r--r--fs/libfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/libfs.c b/fs/libfs.c
index eec6031b0155..6fb8244b259e 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;