From patchwork Sun Apr 2 04:51:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 1764176 X-Patchwork-Delegate: apalos@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=mrUAIK8R; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Pq1pX3vxFz1yYT for ; Sun, 2 Apr 2023 14:52:04 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id ED63185845; Sun, 2 Apr 2023 06:52:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.b="mrUAIK8R"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EDA7B85967; Sun, 2 Apr 2023 06:51:59 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from smtp-relay-canonical-0.canonical.com (smtp-relay-canonical-0.canonical.com [185.125.188.120]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4529885844 for ; Sun, 2 Apr 2023 06:51:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=heinrich.schuchardt@canonical.com Received: from LT2ubnt.fritz.box (ip-088-152-145-137.um26.pools.vodafone-ip.de [88.152.145.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id 54B323F322; Sun, 2 Apr 2023 04:51:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1680411116; bh=FTD5MuA2VnsEh/l+2DIZE5Cx+vtMwwx0mAzRMu6elGY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=mrUAIK8Rg37G4o1oyGZFTaZWdcf3lsxz6XnpXyXNiXo4t9LV3joe7MRFpW6edBgDJ XM7lwdC4/edbFLNJsmyAHtpDsoqVKYPo50gtjdETdlhxwrj2Q2sGUrzuSV4VUmHIhT aIs3ssHSV8Nv77v3Kxpz5hW7p6akl7eo0YnX+yjGufh6nhFPQDNqw6lLVRkTKdOvyf XLzZc7EZXD10smJ/bLR5U5HSt2oCaKaMfQ9jJI8EU+CEc6zJKzG4uvMvhqbM9aCrVi BcxCZ+TxSgaRHLBdldcBYGpQigng/PBEPIgaWRvVTTWBVQWQ+p7Sq4wfLsu0K5PjTN cWdjzM1HYIaBg== From: Heinrich Schuchardt To: Ilias Apalodimas Cc: Simon Glass , u-boot@lists.denx.de, Heinrich Schuchardt Subject: [PATCH 1/1] cmd: missing break in test_write_limit() Date: Sun, 2 Apr 2023 06:51:54 +0200 Message-Id: <20230402045154.8493-1-heinrich.schuchardt@canonical.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean In test_write_limit() an unintended fall-through occurs. Suggested-by: Simon Glass Signed-off-by: Heinrich Schuchardt Reviewed-by: Simon Glass Reviewed-by: Ilias Apalodimas --- cmd/tpm_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/tpm_test.c b/cmd/tpm_test.c index b35eae81dc..c4ed8e5901 100644 --- a/cmd/tpm_test.c +++ b/cmd/tpm_test.c @@ -471,6 +471,7 @@ static int test_write_limit(struct udevice *dev) break; case TPM_MAXNVWRITES: assert(i >= TPM_MAX_NV_WRITES_NOOWNER); + break; default: pr_err("\tunexpected error code %d (0x%x)\n", result, result);