diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2023-07-22 17:53:58 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-07-28 13:20:25 +0300 |
commit | 6df04505f3b285f3bcfe81cf0461339b0f4ed41d (patch) | |
tree | 97c1e28558da268de45166b20a48f1e065511d13 /lib/crypto/mpi/mpi-internal.h | |
parent | 81511798bdfb1a61f97569436789721aace942fb (diff) | |
download | linux-6df04505f3b285f3bcfe81cf0461339b0f4ed41d.tar.xz |
crypto: caam - Use struct_size()
Use struct_size() instead of hand-writing it, when allocating a structure
with a flex array.
This is less verbose, more robust and more informative.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Gaurav Jain <gaurav.jain@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/crypto/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions