security: keys: remove redundant assignment to key_ref
authorColin Ian King <colin.king@canonical.com>
Fri, 8 Dec 2017 15:13:29 +0000 (15:13 +0000)
committerDavid Howells <dhowells@redhat.com>
Fri, 8 Dec 2017 15:13:29 +0000 (15:13 +0000)
commit3d1f0255426af7eeb88bf7221ff683b7ca9e4493
tree040b8d2c282b2fa585f233065db1ab4beeba783e
parentaa3300362060525fe1a32de56df9578033530d98
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>
security/keys/key.c