Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd17de50 authored by Yuezhang Mo's avatar Yuezhang Mo Committed by Namjae Jeon
Browse files

exfat: remove unneeded code from exfat_alloc_cluster()



In the removed code, num_clusters is 0, nothing is done in
exfat_chain_cont_cluster(), so it is unneeded, remove it.

Signed-off-by: default avatarYuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: default avatarAndy Wu <Andy.Wu@sony.com>
Signed-off-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
parent 0e44fbe1
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -362,15 +362,8 @@ int exfat_alloc_cluster(struct inode *inode, unsigned int num_alloc,
		exfat_err(sb, "hint_cluster is invalid (%u)",
			hint_clu);
		hint_clu = EXFAT_FIRST_CLUSTER;
		if (p_chain->flags == ALLOC_NO_FAT_CHAIN) {
			if (exfat_chain_cont_cluster(sb, p_chain->dir,
					num_clusters)) {
				ret = -EIO;
				goto unlock;
			}
		p_chain->flags = ALLOC_FAT_CHAIN;
	}
	}

	p_chain->dir = EXFAT_EOF_CLUSTER;