From patchwork Tue Mar 30 10:54:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 1460000 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4F8mYG5sjWz9sRR for ; Tue, 30 Mar 2021 21:54:41 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1lRC13-0004tf-5x; Tue, 30 Mar 2021 10:54:33 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lRC11-0004tT-R3 for fwts-devel@lists.ubuntu.com; Tue, 30 Mar 2021 10:54:31 +0000 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lRC11-0004Va-Jc; Tue, 30 Mar 2021 10:54:31 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH] acpi: method: remove redundant continue statement Date: Tue, 30 Mar 2021 11:54:31 +0100 Message-Id: <20210330105431.1060642-1-colin.king@canonical.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" From: Colin Ian King The continue statement at the end of a for-loop is redundant. Remove it to silence pedantic static analysis warnings. Signed-off-by: Colin Ian King --- src/acpi/method/method.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/acpi/method/method.c b/src/acpi/method/method.c index f5253de9..0cbb3982 100644 --- a/src/acpi/method/method.c +++ b/src/acpi/method/method.c @@ -3884,10 +3884,8 @@ static void method_test_TRT_return( elements_ok = false; } - if (!elements_ok) { + if (!elements_ok) failed = true; - continue; - } } if (!failed)