diff options
author | Alan Cox <alan@linux.intel.com> | 2012-10-25 18:23:35 +0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-10-25 20:00:27 +0400 |
commit | b010520ab3d2c05eb444ed5e01fe6c33842f597a (patch) | |
tree | cf958deb54615a8ff5432bdbf3b70da2a76b9508 /security/keys | |
parent | 6f7c962c0b8efc78aec4c5514865fb5be83f4d92 (diff) | |
download | linux-b010520ab3d2c05eb444ed5e01fe6c33842f597a.tar.xz |
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: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'security/keys')
-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 54339cfd6734..178b8c3b130a 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; |