aboutsummaryrefslogtreecommitdiffstats
path: root/security/keys/process_keys.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/keys/process_keys.c')
-rw-r--r--security/keys/process_keys.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/security/keys/process_keys.c b/security/keys/process_keys.c
index a58f712605d8..86468f385fc8 100644
--- a/security/keys/process_keys.c
+++ b/security/keys/process_keys.c
@@ -358,8 +358,6 @@ key_ref_t search_my_process_keyrings(struct key_type *type,
358 358
359 switch (PTR_ERR(key_ref)) { 359 switch (PTR_ERR(key_ref)) {
360 case -EAGAIN: /* no key */ 360 case -EAGAIN: /* no key */
361 if (ret)
362 break;
363 case -ENOKEY: /* negative key */ 361 case -ENOKEY: /* negative key */
364 ret = key_ref; 362 ret = key_ref;
365 break; 363 break;