OSDN Git Service

media: pci: cx18-av-vbi: Replace one-element array with flexible-array member
authorGustavo A. R. Silva <gustavoars@kernel.org>
Wed, 24 May 2023 00:20:38 +0000 (01:20 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 26 May 2023 09:57:20 +0000 (10:57 +0100)
commitfe1b585ce91da47af7e7f8985428099d52eeca3c
tree4a7364f89103c44c735932a2671dc115dc23dbf4
parentbd947783a2177f9083c4bde5b9db45df2d5adc8b
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>
drivers/media/pci/cx18/cx18-av-vbi.c