diff options
author | Alan Cox <alan@linux.intel.com> | 2012-10-25 10:23:35 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-10-25 12:00:27 -0400 |
commit | b010520ab3d2c05eb444ed5e01fe6c33842f597a (patch) | |
tree | cf958deb54615a8ff5432bdbf3b70da2a76b9508 /security | |
parent | 6f7c962c0b8efc78aec4c5514865fb5be83f4d92 (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: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'security')
-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, | |||
357 | 357 | ||
358 | switch (PTR_ERR(key_ref)) { | 358 | switch (PTR_ERR(key_ref)) { |
359 | case -EAGAIN: /* no key */ | 359 | case -EAGAIN: /* no key */ |
360 | if (ret) | ||
361 | break; | ||
362 | case -ENOKEY: /* negative key */ | 360 | case -ENOKEY: /* negative key */ |
363 | ret = key_ref; | 361 | ret = key_ref; |
364 | break; | 362 | break; |