Skip to content

Commit b010520

Browse files
Alan CoxJiri Kosina
Alan Cox
authored and
Jiri Kosina
committed
keys: Fix unreachable code
We set ret to NULL then test it. Remove the bogus test Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 6f7c962 commit b010520

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

security/keys/process_keys.c

-2
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,6 @@ key_ref_t search_my_process_keyrings(struct key_type *type,
357357

358358
switch (PTR_ERR(key_ref)) {
359359
case -EAGAIN: /* no key */
360-
if (ret)
361-
break;
362360
case -ENOKEY: /* negative key */
363361
ret = key_ref;
364362
break;

0 commit comments

Comments
 (0)