summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-12-08 15:13:29 +0000
committerDavid Howells <dhowells@redhat.com>2017-12-08 15:13:29 +0000
commit3d1f0255426af7eeb88bf7221ff683b7ca9e4493 (patch)
tree040b8d2c282b2fa585f233065db1ab4beeba783e /security
parentaa3300362060525fe1a32de56df9578033530d98 (diff)
downloadop-kernel-dev-3d1f0255426af7eeb88bf7221ff683b7ca9e4493.zip
op-kernel-dev-3d1f0255426af7eeb88bf7221ff683b7ca9e4493.tar.gz
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 'security')
-rw-r--r--security/keys/key.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/security/keys/key.c b/security/keys/key.c
index 6604918..d97c939 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;
OpenPOWER on IntegriCloud