mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
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>
This commit is contained in:
parent
d1d3fcb324
commit
bceef326bc
@ -471,7 +471,7 @@ struct fileIdentDesc {
|
|||||||
uint8_t lengthFileIdent;
|
uint8_t lengthFileIdent;
|
||||||
struct long_ad icb;
|
struct long_ad icb;
|
||||||
__le16 lengthOfImpUse;
|
__le16 lengthOfImpUse;
|
||||||
uint8_t impUse[];
|
/* uint8_t impUse[]; */
|
||||||
/* uint8_t fileIdent[]; */
|
/* uint8_t fileIdent[]; */
|
||||||
/* uint8_t padding[]; */
|
/* uint8_t padding[]; */
|
||||||
} __packed;
|
} __packed;
|
||||||
|
Loading…
Reference in New Issue
Block a user