mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 06:14:39 +01:00
keys: Fix unreachable code
We set ret to NULL then test it. Remove the bogus test Signed-off-by: Alan Cox <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
1 parent
6f7c962c0b
commit
b010520ab3
1 file changed
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user