Skip to content

Commit d5eb2e1

Browse files
Tetsuhiro Kohadanamjaejeon
authored andcommitted
exfat: remove useless check in exfat_move_file()
In exfat_move_file(), the identity of source and target directory has been checked by the caller. Also, it gets stream.start_clu from file dir-entry, which is an invalid determination. Signed-off-by: Tetsuhiro Kohada <[email protected]> Acked-by: Sungjong Seo <[email protected]> Signed-off-by: Namjae Jeon <[email protected]>
1 parent 8cb2bc3 commit d5eb2e1

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

namei.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,11 +1201,6 @@ static int exfat_move_file(struct inode *inode, struct exfat_chain *p_olddir,
12011201
if (!epmov)
12021202
return -EIO;
12031203

1204-
/* check if the source and target directory is the same */
1205-
if (exfat_get_entry_type(epmov) == TYPE_DIR &&
1206-
le32_to_cpu(epmov->dentry.stream.start_clu) == p_newdir->dir)
1207-
return -EINVAL;
1208-
12091204
num_old_entries = exfat_count_ext_entries(sb, p_olddir, oldentry,
12101205
epmov);
12111206
if (num_old_entries < 0)

0 commit comments

Comments
 (0)