crypto: ixp4xx - silence uninitialized variable warning
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 19 Apr 2023 14:26:04 +0000 (17:26 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 12 May 2023 10:48:01 +0000 (18:48 +0800)
commita4ca033d3294bedbcc44046efeb54873631f5faf
treeef221d166bd4820772e19989fede90f556481874
parent3e522591f9f97d954fca8141727f958f6002684c
crypto: ixp4xx - silence uninitialized variable warning

Smatch complains that "dma" is uninitialized if dma_pool_alloc() fails.
This is true, but also harmless.  Anyway, move the assignment after the
error checking to silence this warning.

Fixes: 586d492f2856 ("crypto: ixp4xx - fix building wiht 64-bit dma_addr_t")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/intel/ixp4xx/ixp4xx_crypto.c