diff options
| author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2023-05-17 00:14:49 +0100 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2023-06-09 13:45:09 +0100 |
| commit | e03ac40885db88cece5a5c866b6825d1eeacb24e (patch) | |
| tree | 2067c6b454fd566c51e20d270b931d75a637e9e8 /tools/perf/scripts/python | |
| parent | 40c02059645890d0525b693fc5b80d4c4db8d205 (diff) | |
| download | linux-e03ac40885db88cece5a5c866b6825d1eeacb24e.tar.gz linux-e03ac40885db88cece5a5c866b6825d1eeacb24e.zip | |
media: venus: hfi_cmds: 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.
Link: https://github.com/KSPP/linux/issues/160
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Stanimir Varbanov <stanimir.k.varbanov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
