summaryrefslogtreecommitdiff
path: root/drivers/crypto/ux500/hash/hash_alg.h
diff options
context:
space:
mode:
authorFuqian Huang <huangfq.daxian@gmail.com>2019-07-04 00:27:08 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2019-07-26 15:03:59 +1000
commitcc2a58f14fb88e753fbc38b658e320c3a62d8c47 (patch)
treee835794ef0fdf53b72e914da35c9fec6deffeede /drivers/crypto/ux500/hash/hash_alg.h
parent97bcb161995548ad319c78b2533f998a7b92ab4c (diff)
crypto: drivers - Use kmemdup rather than duplicating its implementation
kmemdup is introduced to duplicate a region of memory in a neat way. Rather than kmalloc/kzalloc + memcpy, which the programmer needs to write the size twice (sometimes lead to mistakes), kmemdup improves readability, leads to smaller code and also reduce the chances of mistakes. Suggestion to use kmemdup rather than using kmalloc/kzalloc + memcpy. Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com> Reviewed-by: Horia Geantă <horia.geanta@nxp.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ux500/hash/hash_alg.h')
0 files changed, 0 insertions, 0 deletions