projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f7c962
)
keys: Fix unreachable code
author
Alan Cox
<alan@linux.intel.com>
Thu, 25 Oct 2012 14:23:35 +0000
(15:23 +0100)
committer
Jiri Kosina
<jkosina@suse.cz>
Thu, 25 Oct 2012 16:00:27 +0000
(18:00 +0200)
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>
security/keys/process_keys.c
patch
|
blob
|
blame
|
history
diff --git
a/security/keys/process_keys.c
b/security/keys/process_keys.c
index 54339cfd6734d46927e8e9228019891e7130c272..178b8c3b130a4fe374bea90e2e36ab0c8655c4f8 100644
(file)
--- 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;
This page took
0.025322 seconds
and
5
git commands to generate.