Skip to content
Commit cbdd13bf authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Bjorn Andersson
Browse files

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: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/f74328551cfab0262ba353f37d047ac74bf616e1.1689194490.git.christophe.jaillet@wanadoo.fr


Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent 7bc1cfae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment