integrity: remove redundant initialization of variable ret
authorColin Ian King <colin.king@canonical.com>
Wed, 1 Jul 2020 13:46:34 +0000 (14:46 +0100)
committerMimi Zohar <zohar@linux.ibm.com>
Mon, 27 Jul 2020 20:52:09 +0000 (16:52 -0400)
commit3db0d0c276a752af39beb5ca7424cb659aa005bb
tree1dbf5e2ad52e34fd1e5c147d6a24099d0a41215f
parent311aa6aafea446c2f954cc19d66425bfed8c4b0b
integrity: remove redundant initialization of variable ret

The variable ret is being initialized with a value that is never read
and it is being updated later with a new value.  The initialization is
redundant and can be removed.

Fixes: eb5798f2e28f ("integrity: convert digsig to akcipher api")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: James Morris <jamorris@linux.microsoft.com>
Addresses-Coverity: ("Unused value")
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/digsig_asymmetric.c