projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a68c2f1
)
keys: fix unreachable code
author
Alan Cox
<alan@linux.intel.com>
Thu, 20 Dec 2012 23:05:54 +0000
(15:05 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 21 Dec 2012 01:40:21 +0000
(17:40 -0800)
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
security/keys/process_keys.c
patch
|
blob
|
history
diff --git
a/security/keys/process_keys.c
b/security/keys/process_keys.c
index
58dfe08
..
20e4bf5
100644
(file)
--- 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;