Skip to content

Commit bceef32

Browse files
committed
udf: Avoid unneeded variable length array in struct fileIdentDesc
impUse variable length array in struct fileIdentDesc is never used. It serves only for documentation purposes of the on-disk format. Remove it from the struct so that it doesn't confuse the compiler and reviewers. Reported-by: "Gustavo A. R. Silva" <gustavoars@kernel.org> References: https://lore.kernel.org/all/ZRrsYkKIQe8K6F/t@work Signed-off-by: Jan Kara <jack@suse.cz>
1 parent d1d3fcb commit bceef32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/udf/ecma_167.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ struct fileIdentDesc {
471471
uint8_t lengthFileIdent;
472472
struct long_ad icb;
473473
__le16 lengthOfImpUse;
474-
uint8_t impUse[];
474+
/* uint8_t impUse[]; */
475475
/* uint8_t fileIdent[]; */
476476
/* uint8_t padding[]; */
477477
} __packed;

0 commit comments

Comments
 (0)