diff options
author | Li zeming <[email protected]> | 2024-02-20 14:20:30 +0800 |
---|---|---|
committer | Christian Brauner <[email protected]> | 2024-02-20 10:24:48 +0100 |
commit | bae8bc46987ed8b9e8d00d0a87ac698a85d15904 (patch) | |
tree | e4a620ef38dddac78f77f64184f9b14066cd2262 | |
parent | 39a6c668e4e78c3bc262c24d9aabd0a49027f948 (diff) |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian Brauner <[email protected]>
-rw-r--r-- | fs/libfs.c | 2 |
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; |