Skip to content

Commit bae8bc4

Browse files
Li zemingbrauner
authored andcommitted
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>
1 parent 39a6c66 commit bae8bc4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/libfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1752,7 +1752,7 @@ static int generic_ci_d_hash(const struct dentry *dentry, struct qstr *str)
17521752
const struct inode *dir = READ_ONCE(dentry->d_inode);
17531753
struct super_block *sb = dentry->d_sb;
17541754
const struct unicode_map *um = sb->s_encoding;
1755-
int ret = 0;
1755+
int ret;
17561756

17571757
if (!dir || !IS_CASEFOLDED(dir))
17581758
return 0;

0 commit comments

Comments
 (0)