crypto: aspeed - fix uninitialized symbol 'idx' warning
authorNeal Liu <neal_liu@aspeedtech.com>
Wed, 1 Mar 2023 03:32:05 +0000 (11:32 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 14 Mar 2023 09:06:45 +0000 (17:06 +0800)
commitb2ca29501c2b60934094fb59113a1c44f56f66f4
tree731d2339c4411f6701de8bb86f99e25d1d278fb2
parent06e39357c36b0d3cc2779d08ed04cb389eaa22ba
crypto: aspeed - fix uninitialized symbol 'idx' warning

'idx' is not initialized if it's not EXP_MODE nor MOD_MODE.
Use "else" instead to fix it.

Signed-off-by: Neal Liu <neal_liu@aspeedtech.com>
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Link: https://lore.kernel.org/r/202302261052.CVFRyq6F-lkp@intel.com/
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/aspeed/aspeed-acry.c