WSL2-Linux-Kernel/drivers/crypto/amlogic
Christophe JAILLET 815b65d714 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:14:25 +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 - call finalize with bh disabled 2022-04-08 14:23:08 +02:00
amlogic-gxl-core.c crypto: amlogic - Remove kcalloc without check 2022-12-31 13:14:25 +01:00
amlogic-gxl.h crypto: amlogic - Remove kcalloc without check 2022-12-31 13:14:25 +01:00