Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63152770 authored by Alan Cox's avatar Alan Cox Committed by David Howells
Browse files

keys: Fix unreachable code



We set ret to NULL then test it. Remove the bogus test

Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent bf530834
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;