[PATCH] crypto: ixp4xx - silence uninitialized variable warning

Linus Walleij linus.walleij at linaro.org
Fri Apr 21 01:58:03 PDT 2023


On Wed, Apr 19, 2023 at 4:26 PM Dan Carpenter <dan.carpenter at linaro.org> wrote:

> 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 at linaro.org>

Acked-by: Linus Walleij <linus.walleij at linaro.org>

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list