crypto: ixp4xx - Fix false lastlen uninitialised warning
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 19 Jan 2016 01:00:21 +0000 (09:00 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 25 Jan 2016 14:42:09 +0000 (22:42 +0800)
commit0f987e25cb8a9c23bfd70942a580c2698444e4b4
tree68080c60ed0d470058af4fd61d46e505abb46c6f
parent9dbcc215ad2cee4c07da359cc9e7ac315d031f1d
crypto: ixp4xx - Fix false lastlen uninitialised warning

This patch fixes a false positive uninitialised variable warning
in aead_perform by moving the source processing in front of the
destination processing, thus ensuring that the initialisation of
lastlen is always visible to gcc.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Arnd Bergmann <arnd@arndb.de>
drivers/crypto/ixp4xx_crypto.c