projects
/
openwrt
/
staging
/
blogic.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
<
[email protected]
>
Thu, 20 Dec 2012 23:05:54 +0000
(15:05 -0800)
committer
Linus Torvalds
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: David Howells <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
security/keys/process_keys.c
patch
|
blob
|
history
diff --git
a/security/keys/process_keys.c
b/security/keys/process_keys.c
index 58dfe089094793030f56fdb895f6621e403e4157..20e4bf57aec8b6418bf4d4df86c616903121c28c 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;