diff options
author | Alan Cox <alan@linux.intel.com> | 2012-09-28 12:20:02 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2012-09-28 12:20:02 +0100 |
commit | 631527703d1aa2f0c5dc2af0d998f4da95c83f0e (patch) | |
tree | a2aec36285e598c3f1c34aef166b242859bddb63 | |
parent | bf5308344527d015ac9a6d2bda4ad4d40fd7d943 (diff) |
keys: Fix unreachable code
We set ret to NULL then test it. Remove the bogus test
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: David Howells <dhowells@redhat.com>
-rw-r--r-- | security/keys/process_keys.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/security/keys/process_keys.c b/security/keys/process_keys.c index 54339cfd673..178b8c3b130 100644 --- a/security/keys/process_keys.c +++ b/security/keys/process_keys.c @@ -357,8 +357,6 @@ key_ref_t search_my_process_keyrings(struct key_type *type, switch (PTR_ERR(key_ref)) { case -EAGAIN: /* no key */ - if (ret) - break; case -ENOKEY: /* negative key */ ret = key_ref; break; |