Skip to content

Commit 3db0d0c

Browse files
Colin Ian Kingmimizohar
authored andcommitted
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: eb5798f ("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>
1 parent 311aa6a commit 3db0d0c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

security/integrity/digsig_asymmetric.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ int asymmetric_verify(struct key *keyring, const char *sig,
7979
struct public_key_signature pks;
8080
struct signature_v2_hdr *hdr = (struct signature_v2_hdr *)sig;
8181
struct key *key;
82-
int ret = -ENOMEM;
82+
int ret;
8383

8484
if (siglen <= sizeof(*hdr))
8585
return -EBADMSG;

0 commit comments

Comments
 (0)