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>

authored by Colin Ian King and committed by David Howells 3d1f0255 aa330036

-1
-1
security/keys/key.c
··· 833 833 834 834 key_check(keyring); 835 835 836 - key_ref = ERR_PTR(-EPERM); 837 836 if (!(flags & KEY_ALLOC_BYPASS_RESTRICTION)) 838 837 restrict_link = keyring->restrict_link; 839 838