linux-stable/drivers/crypto/amlogic
Christophe JAILLET 22a59bb0aa crypto: amlogic - Remove kcalloc without check
[ Upstream commit 3d780c8a98 ]

There is no real point in allocating dedicated memory for the irqs array.
MAXFLOW is only 2, so it is easier to allocated the needed space
directly within the 'meson_dev' structure.

This saves some memory allocation and avoids an indirection when using the
irqs array.

Fixes: 48fe583fe5 ("crypto: amlogic - Add crypto accelerator...")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:32:36 +01:00
..
Kconfig crypto: amlogic-gxl - default to build as module 2020-07-16 21:49:01 +10:00
Makefile
amlogic-gxl-cipher.c crypto: amlogic - Fix dma_map_sg error check 2022-08-26 18:50:40 +08:00
amlogic-gxl-core.c crypto: amlogic - Remove kcalloc without check 2022-12-31 13:32:36 +01:00
amlogic-gxl.h crypto: amlogic - Remove kcalloc without check 2022-12-31 13:32:36 +01:00