Messages in this thread Patch in this message | | | Subject | [PATCH 1/2] keys: Fix unreachable code | From | David Howells <> | Date | Mon, 17 Dec 2012 13:15:23 +0000 |
| |
From: Alan Cox <alan@linux.intel.com>
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> ---
security/keys/process_keys.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/security/keys/process_keys.c b/security/keys/process_keys.c index 58dfe08..20e4bf5 100644 --- a/security/keys/process_keys.c +++ b/security/keys/process_keys.c @@ -367,8 +367,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;
| |