diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2023-07-12 23:42:15 +0300 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2023-07-14 06:21:26 +0300 |
commit | cbdd13bfea785667f9c9df4c6ec46fc841ef6c4a (patch) | |
tree | 3c02391ab753569084bddf8a8cec01210e076539 /tools/perf/scripts/python/gecko.py | |
parent | 7bc1cfaee1f03008e8b1fd29e621cb50a9512263 (diff) | |
download | linux-cbdd13bfea785667f9c9df4c6ec46fc841ef6c4a.tar.xz |
soc: qcom: smem: Use struct_size()
Use struct_size() instead of hand-writing it, when allocating a structure
with a flex array.
This is less verbose.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/f74328551cfab0262ba353f37d047ac74bf616e1.1689194490.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions