Re: [PATCH 5.10 258/530] security: keys: trusted: fix TPM2 authorizations
From: Pavel Machek
Date: Sat May 15 2021 - 04:23:37 EST
Hi!
Clean up unreachable code.
Signed-off-by: Pavel Machek (CIP) <pavel@xxxxxxx>
diff --git a/security/keys/trusted-keys/trusted_tpm1.c b/security/keys/trusted-keys/trusted_tpm1.c
index 230c0b27b77d..5bae4ed73c4d 100644
--- a/security/keys/trusted-keys/trusted_tpm1.c
+++ b/security/keys/trusted-keys/trusted_tpm1.c
@@ -813,11 +813,7 @@ static int getoptions(char *c, struct trusted_key_payload *pay,
opt->blobauth_len);
break;
}
-
return -EINVAL;
-
- break;
-
case Opt_migratable:
if (*args[0].from == '0')
pay->migratable = 0;
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Attachment:
signature.asc
Description: Digital signature