1
0
Fork 0
alistair23-linux/drivers/crypto/inside-secure
Arnd Bergmann 313400a967 crypto: inside-secure - Fix a maybe-uninitialized warning
[ Upstream commit 74e6bd472b ]

A previous fixup avoided an unused variable warning but replaced
it with a slightly scarier warning:

drivers/crypto/inside-secure/safexcel.c:1100:6: error: variable 'irq' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]

This is harmless as it is impossible to get into this case, but
the compiler has no way of knowing that. Add an explicit error
handling case to make it obvious to both compilers and humans
reading the source.

Fixes: 212ef6f29e ("crypto: inside-secure - Fix unused variable warning when CONFIG_PCI=n")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Pascal van Leeuwen <pvanleeuwen@verimatrix.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-31 16:43:56 +01:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
safexcel.c crypto: inside-secure - Fix a maybe-uninitialized warning 2019-12-31 16:43:56 +01:00
safexcel.h crypto: inside-secure - Probe transform record cache RAM sizes 2019-09-13 21:17:58 +10:00
safexcel_cipher.c crypto: inside-secure - Added support for basic AES-CCM 2019-09-05 14:37:30 +10:00
safexcel_hash.c crypto: inside-secure - Made .cra_priority value a define 2019-09-05 14:37:01 +10:00
safexcel_ring.c crypto: inside-secure - Added support for basic AES-GCM 2019-09-05 14:37:29 +10:00