aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include
diff options
context:
space:
mode:
authorYu Liao <liaoyu15@huawei.com>2023-08-16 14:31:43 +0800
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2023-09-27 09:40:01 +0200
commitba85aea885a195b1b6c802a4ff8edf4e014e54b5 (patch)
treef59f3ffc38bcc8edad9d92bc2a7923fe04643fa3 /include
parentmedia: mediatek: vcodec: fix spelling mistake "resonable" -> "reasonable" (diff)
downloadwireguard-linux-ba85aea885a195b1b6c802a4ff8edf4e014e54b5.tar.xz
wireguard-linux-ba85aea885a195b1b6c802a4ff8edf4e014e54b5.zip
media: use struct_size() helper
Prefer struct_size() over open-coded versions of idiom: sizeof(struct-with-flex-array) + sizeof(typeof-flex-array-elements) * count where count is the max number of items the flexible array is supposed to contain. Signed-off-by: Yu Liao <liaoyu15@huawei.com> Reviewed-by: Tomasz Figa <tfiga@chromium.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions