Commit b010520ab3d2c05eb444ed5e01fe6c33842f597a

Authored by Alan Cox
Committed by Jiri Kosina
1 parent 6f7c962c0b

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>

Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff

security/keys/process_keys.c
... ... @@ -357,8 +357,6 @@
357 357  
358 358 switch (PTR_ERR(key_ref)) {
359 359 case -EAGAIN: /* no key */
360   - if (ret)
361   - break;
362 360 case -ENOKEY: /* negative key */
363 361 ret = key_ref;
364 362 break;