Commit 67f8224c authored by Valdis Kletnieks's avatar Valdis Kletnieks Committed by Greg Kroah-Hartman

staging: exfat: Clean up return codes - FFS_NOTFOUND

Convert FFS_NOTFOUND to -ENOENT
Signed-off-by: default avatarValdis Kletnieks <Valdis.Kletnieks@vt.edu>
Link: https://lore.kernel.org/r/20191024155327.1095907-3-Valdis.Kletnieks@vt.eduSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2f2e2886
...@@ -216,7 +216,6 @@ static inline u16 get_row_index(u16 i) ...@@ -216,7 +216,6 @@ static inline u16 get_row_index(u16 i)
#define FFS_SEMAPHOREERR 6 #define FFS_SEMAPHOREERR 6
#define FFS_INVALIDPATH 7 #define FFS_INVALIDPATH 7
#define FFS_INVALIDFID 8 #define FFS_INVALIDFID 8
#define FFS_NOTFOUND 9
#define FFS_FILEEXIST 10 #define FFS_FILEEXIST 10
#define FFS_PERMISSIONERR 11 #define FFS_PERMISSIONERR 11
#define FFS_NOTOPENED 12 #define FFS_NOTOPENED 12
......
...@@ -578,7 +578,7 @@ static int ffsLookupFile(struct inode *inode, char *path, struct file_id_t *fid) ...@@ -578,7 +578,7 @@ static int ffsLookupFile(struct inode *inode, char *path, struct file_id_t *fid)
dentry = p_fs->fs_func->find_dir_entry(sb, &dir, &uni_name, num_entries, dentry = p_fs->fs_func->find_dir_entry(sb, &dir, &uni_name, num_entries,
&dos_name, TYPE_ALL); &dos_name, TYPE_ALL);
if (dentry < -1) { if (dentry < -1) {
ret = FFS_NOTFOUND; ret = -ENOENT;
goto out; goto out;
} }
...@@ -2701,7 +2701,7 @@ static int exfat_rmdir(struct inode *dir, struct dentry *dentry) ...@@ -2701,7 +2701,7 @@ static int exfat_rmdir(struct inode *dir, struct dentry *dentry)
err = -EINVAL; err = -EINVAL;
else if (err == FFS_FILEEXIST) else if (err == FFS_FILEEXIST)
err = -ENOTEMPTY; err = -ENOTEMPTY;
else if (err == FFS_NOTFOUND) else if (err == -ENOENT)
err = -ENOENT; err = -ENOENT;
else if (err == FFS_DIRBUSY) else if (err == FFS_DIRBUSY)
err = -EBUSY; err = -EBUSY;
...@@ -2758,7 +2758,7 @@ static int exfat_rename(struct inode *old_dir, struct dentry *old_dentry, ...@@ -2758,7 +2758,7 @@ static int exfat_rename(struct inode *old_dir, struct dentry *old_dentry,
err = -EINVAL; err = -EINVAL;
else if (err == FFS_FILEEXIST) else if (err == FFS_FILEEXIST)
err = -EEXIST; err = -EEXIST;
else if (err == FFS_NOTFOUND) else if (err == -ENOENT)
err = -ENOENT; err = -ENOENT;
else if (err == -ENOSPC) else if (err == -ENOSPC)
err = -ENOSPC; err = -ENOSPC;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment