projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39a6c66
)
libfs: Remove unnecessary ‘0’ values from ret
author
Li zeming
<zeming@nfschina.com>
Tue, 20 Feb 2024 06:20:30 +0000
(14:20 +0800)
committer
Christian Brauner
<brauner@kernel.org>
Tue, 20 Feb 2024 09:24:48 +0000
(10:24 +0100)
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>
fs/libfs.c
patch
|
blob
|
history
diff --git
a/fs/libfs.c
b/fs/libfs.c
index eec6031b0155442eab924ce946c2295c711105d2..6fb8244b259e81df288defa741c16b05efb89e77 100644
(file)
--- 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;