提交 3db0d0c2 编写于 作者: C Colin Ian King 提交者: 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: NColin Ian King <colin.king@canonical.com>
Acked-by: NJames Morris <jamorris@linux.microsoft.com>
Addresses-Coverity: ("Unused value")
Signed-off-by: NMimi Zohar <zohar@linux.ibm.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册