]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0c161943e890e9f69b9b5aaaf9a229bc518321e5
tree68080c60ed0d470058af4fd61d46e505abb46c6f
parent16ef5a31c10be17ea22fdd32834aeec0c6c1b479
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