exfat: eliminate dead code in exfat_find()
Subsystems (2)
PATCH 1/1 exfat: eliminate dead code in exfat_find()
The exfat_find_dir_entry() called by exfat_find() doesn't return -EEXIST. Therefore, the root-dir information setting is never executed.
Signed-off-by Tetsuhiro Kohada <[email protected]>
--- fs/exfat/dir.c | 1 - fs/exfat/namei.c | 120 +++++++++++++++++++---------------------------- 2 files changed, 47 insertions(+), 74 deletions(-)
fs/exfat/dir.c +0 -1
@@ -911,7 +911,6 @@ enum {/* * return values: * >= 0 : return dir entiry position with the name in dir -* -EEXIST : (root dir, ".") it is the root dir itself * -ENOENT : entry with the name does not exist * -EIO : I/O error */
fs/exfat/namei.c +47 -73
144 lines not on this page · raw message
Signature · 1 line
2.25.1
Quoted 4 lines
The
exfat_find_dir_entry()called byexfat_find()doesn't return-EEXIST. Therefore, the root-dir information setting is never executed.Signed-off-by Tetsuhiro Kohada <[email protected]>
Acked-by Sungjong Seo <[email protected]>
Quoted 4 lines
--- fs/exfat/dir.c | 1 - fs/exfat/namei.c | 120 +++++++++++++++++++---------------------------- 2 files changed, 47 insertions(+), 74 deletions(-)
Namjae Jeon
AppliedQuoted 6 lines
Quoted 4 lines
The
exfat_find_dir_entry()called byexfat_find()doesn't return-EEXIST. Therefore, the root-dir information setting is never executed.Signed-off-by Tetsuhiro Kohada <[email protected]>Acked-by Sungjong Seo <[email protected]>
Applied. Thanks for your work!