Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1326575pxj; Sat, 15 May 2021 10:56:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzV/R5rflcWle+cyMQllJTz1q+/Wj4qpb6UhZSb+vilEBW/pMjP06vgKS694XU3LL1FE0Dh X-Received: by 2002:a92:7f07:: with SMTP id a7mr4973799ild.202.1621101376625; Sat, 15 May 2021 10:56:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621101376; cv=none; d=google.com; s=arc-20160816; b=u4wjjVlxY/qNQepJvyAna85QxBW9jDTLi4eKkrOmNSnTU8nMbyuzzlWu1UpaWJkdNN 4C2oubjRhdYCuUvK+rozCLJCJ7YmsxUOXLs5ytlYmaVJKfXUbEyFowAB2gibGP3/sfDV VKyc9Wz3fLwlDFR1wA7izN98fOMC8IjMvf8sVV/aQCz3d+fbfAOOiRmmfV2pfnKkdlcN dI73dWGT6Jy+vQnVSyKjTEe8QoH03tiedWe9RKmk62QXsvoRD98r3iJREt3TtNMOKQcd ksXasuhJ7Z3WKDt/9lSox4w+N/tXPxGCuzyxROI9AE0OjwluQktPo61HFer2CfRZkFOw XLvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=tUPfOvIE0CbkDhMalunYuA5J2svJmF8pv+HtdHmIG/Q=; b=fGy9LneAMSOjBGcnQ0YOS7xtA1VrkoBAKI2sSaALMoPmMWIUISEfxDICFEBSRK1yZe m5wp0AvKv5uSJTxRqgsABaMWBpUmjwKlQogJF38ZAXAZRaOVvqsKx/ghdBUyCh6R3d8v Aj0J0cZNTe/nZIPTdgPqIohOwydsOgU7tjHn8KX4YlPaoP3UqF992vVcepWVpLrrXJ6z 3kelYq0YXnVtfMttfIAM3wUUDCMeL04X7Bozx7FvAtNooypFWZJUU4TUdI/fcE0TenhF TJJ2aKZz2RvvtHYot0iFjLlDJNIeIfn1GdwM8cyDPoD2nh53OYrYI5DyG4zrrygZ7ZuN T4nw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q13si4209006jap.33.2021.05.15.10.56.04; Sat, 15 May 2021 10:56:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230213AbhEOIYk (ORCPT + 99 others); Sat, 15 May 2021 04:24:40 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:49198 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233223AbhEOIYU (ORCPT ); Sat, 15 May 2021 04:24:20 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id A47751C0B81; Sat, 15 May 2021 10:23:06 +0200 (CEST) Date: Sat, 15 May 2021 10:23:06 +0200 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, James Bottomley , Jarkko Sakkinen , Sasha Levin Subject: Re: [PATCH 5.10 258/530] security: keys: trusted: fix TPM2 authorizations Message-ID: <20210515082305.GC30461@amd> References: <20210512144819.664462530@linuxfoundation.org> <20210512144828.313826968@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WfZ7S8PLGjBY9Voh" Content-Disposition: inline In-Reply-To: <20210512144828.313826968@linuxfoundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --WfZ7S8PLGjBY9Voh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! Clean up unreachable code. Signed-off-by: Pavel Machek (CIP) diff --git a/security/keys/trusted-keys/trusted_tpm1.c b/security/keys/trus= ted-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_payl= oad *pay, opt->blobauth_len); break; } - return -EINVAL; - - break; - case Opt_migratable: if (*args[0].from =3D=3D '0') pay->migratable =3D 0; --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --WfZ7S8PLGjBY9Voh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAmCfhOkACgkQMOfwapXb+vJjFACdGCT8GoBVao8ldJrr5D0/HBS0 zToAoKEFvjC/Ih2OU8j9sz5OCtrF9KXK =gmlC -----END PGP SIGNATURE----- --WfZ7S8PLGjBY9Voh--