mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
media: pci: cx18-av-vbi: Replace one-element array with flexible-array member
One-element arrays are deprecated, and we are replacing them with flexible array members instead. So, replace one-element arrays with flexible-array members in struct vbi_anc_data. This results in no differences in binary output. Link: https://github.com/KSPP/linux/issues/79 Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
bd947783a2
commit
fe1b585ce9
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ struct vbi_anc_data {
|
|||
u8 sdid;
|
||||
u8 data_count;
|
||||
u8 idid[2];
|
||||
u8 payload[1]; /* data_count of payload */
|
||||
u8 payload[]; /* data_count of payload */
|
||||
/* u8 checksum; */
|
||||
/* u8 fill[]; Variable number of fill bytes */
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue