fs/ntfs3: Make if more readable
This way it looks better. Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
This commit is contained in:
parent
ec5fc72013
commit
36963cf225
@ -265,10 +265,9 @@ struct ATTRIB *mi_enum_attr(struct mft_inode *mi, struct ATTRIB *attr)
|
|||||||
if (t16 + t32 > asize)
|
if (t16 + t32 > asize)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (attr->name_len &&
|
t32 = sizeof(short) * attr->name_len;
|
||||||
le16_to_cpu(attr->name_off) + sizeof(short) * attr->name_len > t16) {
|
if (t32 && le16_to_cpu(attr->name_off) + t32 > t16)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
|
||||||
|
|
||||||
return attr;
|
return attr;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user