diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-12-08 16:13:29 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2017-12-08 16:13:29 +0100 |
commit | 3d1f0255426af7eeb88bf7221ff683b7ca9e4493 (patch) | |
tree | 040b8d2c282b2fa585f233065db1ab4beeba783e /security/keys/key.c | |
parent | X.509: use crypto_shash_digest() (diff) | |
download | linux-3d1f0255426af7eeb88bf7221ff683b7ca9e4493.tar.xz linux-3d1f0255426af7eeb88bf7221ff683b7ca9e4493.zip |
security: keys: remove redundant assignment to key_ref
Variable key_ref is being assigned a value that is never read;
key_ref is being re-assigned a few statements later. Hence this
assignment is redundant and can be removed.
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: James Morris <james.l.morris@oracle.com>
Diffstat (limited to '')
-rw-r--r-- | security/keys/key.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/security/keys/key.c b/security/keys/key.c index 66049183ad89..d97c9394b5dd 100644 --- a/security/keys/key.c +++ b/security/keys/key.c @@ -833,7 +833,6 @@ key_ref_t key_create_or_update(key_ref_t keyring_ref, key_check(keyring); - key_ref = ERR_PTR(-EPERM); if (!(flags & KEY_ALLOC_BYPASS_RESTRICTION)) restrict_link = keyring->restrict_link; |