Commit 3db0d0c2 authored by Colin Ian King's avatar Colin Ian King Committed by Mimi Zohar

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: eb5798f2 ("integrity: convert digsig to akcipher api")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarJames Morris <jamorris@linux.microsoft.com>
Addresses-Coverity: ("Unused value")
Signed-off-by: default avatarMimi Zohar <zohar@linux.ibm.com>
parent 311aa6aa
......@@ -79,7 +79,7 @@ int asymmetric_verify(struct key *keyring, const char *sig,
struct public_key_signature pks;
struct signature_v2_hdr *hdr = (struct signature_v2_hdr *)sig;
struct key *key;
int ret = -ENOMEM;
int ret;
if (siglen <= sizeof(*hdr))
return -EBADMSG;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment