Skip to content

Commit 36963cf

Browse files
fs/ntfs3: Make if more readable
This way it looks better. Signed-off-by: Konstantin Komarov <[email protected]>
1 parent ec5fc72 commit 36963cf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fs/ntfs3/record.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,9 @@ struct ATTRIB *mi_enum_attr(struct mft_inode *mi, struct ATTRIB *attr)
265265
if (t16 + t32 > asize)
266266
return NULL;
267267

268-
if (attr->name_len &&
269-
le16_to_cpu(attr->name_off) + sizeof(short) * attr->name_len > t16) {
268+
t32 = sizeof(short) * attr->name_len;
269+
if (t32 && le16_to_cpu(attr->name_off) + t32 > t16)
270270
return NULL;
271-
}
272271

273272
return attr;
274273
}

0 commit comments

Comments
 (0)