mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 06:31:58 +02:00
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>
This commit is contained in:
parent
39a6c668e4
commit
bae8bc4698
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user