crypto: ccree - fix memdup.cocci warnings
authorFengguang Wu <fengguang.wu@intel.com>
Thu, 15 Feb 2018 16:40:13 +0000 (00:40 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Feb 2018 14:17:01 +0000 (22:17 +0800)
commit017457061e07852b7173e6a2578c129b49033204
tree202e43b2aeef4240f1aecbc7ec23eeedc83a4114
parent0268483992a23a9185e41b060cca71bfd7582788
crypto: ccree - fix memdup.cocci warnings

drivers/crypto/ccree/cc_cipher.c:629:15-22: WARNING opportunity for kmemdep

 Use kmemdup rather than duplicating its implementation

Generated by: scripts/coccinelle/api/memdup.cocci

Fixes: 63ee04c8b491 ("crypto: ccree - add skcipher support")
CC: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccree/cc_cipher.c