crypto: caam - Use the preferred style for memory allocations
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 21 Aug 2015 16:52:00 +0000 (13:52 -0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 24 Aug 2015 14:07:42 +0000 (22:07 +0800)
commit9c4f9733e26f0d6977096fcafe71ea2ba9f0cd7c
tree4022ae408c94a729cc5483c851d028ced580847b
parenta3c09550f0cbd9965e44a2dc62c85ff5db91f8ff
crypto: caam - Use the preferred style for memory allocations

"The preferred form for passing a size of a struct is the following:

        p = kmalloc(sizeof(*p), ...);
....

The preferred form for allocating a zeroed array is the following:

        p = kcalloc(n, sizeof(...), ...); "

,so do as suggested.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Reviewed-by: Horia Geant? <horia.geanta@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg.c
drivers/crypto/caam/caamhash.c
drivers/crypto/caam/caamrng.c
drivers/crypto/caam/ctrl.c
drivers/crypto/caam/jr.c