Skip to contentSkip to conversation

exfat: eliminate dead code in exfat_find()

PATCH Applied Tetsuhiro Kohada 3 participants 3 messages Sep 2, 2020 – Sep 4, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 fs/exfat/dir.c   |   1 -
 fs/exfat/namei.c | 120 +++++++++++++++++++----------------------------
 2 files changed, 47 insertions(+), 74 deletions(-)
fs/exfat/dir.c +0 -1
index 573659bfbc55..a9b13ae3f325 100644
@@ -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
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines

The exfat_find_dir_entry() called by exfat_find() doesn't return -EEXIST. Therefore, the root-dir information setting is never executed.

Quoted 4 lines
---
 fs/exfat/dir.c   |   1 -
 fs/exfat/namei.c | 120 +++++++++++++++++++----------------------------
 2 files changed, 47 insertions(+), 74 deletions(-)