mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 22:02:02 +00:00
exfat: simplify is_valid_cluster()
Simplify is_valid_cluster(). Signed-off-by: Christophe Vu-Brugier <christophe.vu-brugier@seagate.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
This commit is contained in:
parent
df0cc57e05
commit
e21a28bbcc
1 changed files with 1 additions and 3 deletions
|
@ -84,9 +84,7 @@ int exfat_ent_set(struct super_block *sb, unsigned int loc,
|
||||||
static inline bool is_valid_cluster(struct exfat_sb_info *sbi,
|
static inline bool is_valid_cluster(struct exfat_sb_info *sbi,
|
||||||
unsigned int clus)
|
unsigned int clus)
|
||||||
{
|
{
|
||||||
if (clus < EXFAT_FIRST_CLUSTER || sbi->num_clusters <= clus)
|
return clus >= EXFAT_FIRST_CLUSTER && clus < sbi->num_clusters;
|
||||||
return false;
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int exfat_ent_get(struct super_block *sb, unsigned int loc,
|
int exfat_ent_get(struct super_block *sb, unsigned int loc,
|
||||||
|
|
Loading…
Reference in a new issue