forked from Minki/linux
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>
This commit is contained in:
parent
aa33003620
commit
3d1f025542
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user