diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2023-07-12 22:42:15 +0200 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2023-07-13 20:21:26 -0700 |
commit | cbdd13bfea785667f9c9df4c6ec46fc841ef6c4a (patch) | |
tree | 3c02391ab753569084bddf8a8cec01210e076539 /scripts/gdb/linux/utils.py | |
parent | 7bc1cfaee1f03008e8b1fd29e621cb50a9512263 (diff) |
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 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions