diff options
author | Alan Cox <[email protected]> | 2012-12-20 15:05:54 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2012-12-20 17:40:21 -0800 |
commit | e67eab39bee26f509d38d00ca1a8f24b63f46a31 (patch) | |
tree | 252072ae63bd5ecb8186242ace12e7df3a1311ad | |
parent | a68c2f12b4b28994aaf622bbe5724b7258cc2fcf (diff) |
keys: fix unreachable code
We set ret to NULL then test it. Remove the bogus test
Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: David Howells <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
-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 58dfe0890947..20e4bf57aec8 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; |