diff options
author | Arnd Bergmann <[email protected]> | 2017-07-31 22:49:21 +0200 |
---|---|---|
committer | Herbert Xu <[email protected]> | 2017-08-09 20:17:58 +0800 |
commit | d634baea628af60d20a82db911b9dc99a5f16244 (patch) | |
tree | 46784a86859a79882f4f7fd764ae9cc0c108b081 /lib/mpi/mpi-bit.c | |
parent | c871c10e4ea763e76e30f6ecb64dc9938ae2e6b9 (diff) |
crypto: ccp - avoid uninitialized variable warning
The added support for version 5 CCPs introduced a false-positive
warning in the RSA implementation:
drivers/crypto/ccp/ccp-ops.c: In function 'ccp_run_rsa_cmd':
drivers/crypto/ccp/ccp-ops.c:1856:3: error: 'sb_count' may be used uninitialized in this function [-Werror=maybe-uninitialized]
This changes the code in a way that should make it easier for
the compiler to track the state of the sb_count variable, and
avoid the warning.
Fixes: 6ba46c7d4d7e ("crypto: ccp - Fix base RSA function for version 5 CCPs")
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Gary R Hook <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions