From: Alan Cox Date: Thu, 25 Oct 2012 14:23:35 +0000 (+0100) Subject: keys: Fix unreachable code X-Git-Tag: upstream/snapshot3+hdmi~4414^2~192 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b010520ab3d2c05eb444ed5e01fe6c33842f597a;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git keys: Fix unreachable code We set ret to NULL then test it. Remove the bogus test Signed-off-by: Alan Cox Signed-off-by: Jiri Kosina --- diff --git a/security/keys/process_keys.c b/security/keys/process_keys.c index 54339cf..178b8c3 100644 --- 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;