projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf53083
)
keys: Fix unreachable code
author
Alan Cox
<alan@linux.intel.com>
Fri, 28 Sep 2012 11:20:02 +0000
(12:20 +0100)
committer
David Howells
<dhowells@redhat.com>
Fri, 28 Sep 2012 11:20:02 +0000
(12:20 +0100)
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
patch
|
blob
|
history
diff --git
a/security/keys/process_keys.c
b/security/keys/process_keys.c
index
54339cf
..
178b8c3
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;