linux/drivers/crypto/inside-secure
Arnd Bergmann 74e6bd472b crypto: inside-secure - Fix a maybe-uninitialized warning
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>
2019-10-10 23:36:32 +11:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
safexcel_cipher.c crypto: inside-secure - Added support for the rfc4309(ccm(aes)) AEAD 2019-10-05 01:06:16 +10:00
safexcel_hash.c crypto: inside-secure - Add HMAC-SHA3 family of authentication algorithms 2019-10-05 01:06:07 +10:00
safexcel_ring.c crypto: inside-secure - Add support for the EIP196 2019-10-05 01:06:19 +10:00
safexcel.c crypto: inside-secure - Fix a maybe-uninitialized warning 2019-10-10 23:36:32 +11:00
safexcel.h crypto: inside-secure - Add support for the EIP196 2019-10-05 01:06:19 +10:00