From patchwork Sun Oct 14 20:31:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 191396 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id 8D7FC2C009B for ; Mon, 15 Oct 2012 07:32:27 +1100 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TNUrK-00069w-Co; Sun, 14 Oct 2012 20:32:26 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TNUrF-00067k-TV for fwts-devel@lists.ubuntu.com; Sun, 14 Oct 2012 20:32:21 +0000 Received: from cpc3-craw6-2-0-cust180.croy.cable.virginmedia.com ([77.100.248.181] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1TNUrF-0003qw-PB for fwts-devel@lists.ubuntu.com; Sun, 14 Oct 2012 20:32:21 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH 05/26] lib: fwts_framework: remove redundant parameter from fwts_framework_run_test Date: Sun, 14 Oct 2012 21:31:57 +0100 Message-Id: <1350246738-31699-6-git-send-email-colin.king@canonical.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1350246738-31699-1-git-send-email-colin.king@canonical.com> References: <1350246738-31699-1-git-send-email-colin.king@canonical.com> X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: fwts-devel-bounces@lists.ubuntu.com Errors-To: fwts-devel-bounces@lists.ubuntu.com From: Colin Ian King Remove redundant parameter num_tests from fwts_framework_run_test, it is no longer required, legacy cruft. Signed-off-by: Colin Ian King Acked-by: Alex Hung Acked-by: Keng-Yu Lin --- src/lib/src/fwts_framework.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/src/fwts_framework.c b/src/lib/src/fwts_framework.c index aa26d4b..3be2c3e 100644 --- a/src/lib/src/fwts_framework.c +++ b/src/lib/src/fwts_framework.c @@ -464,7 +464,7 @@ static int fwts_framework_total_summary(fwts_framework *fw) return FWTS_OK; } -static int fwts_framework_run_test(fwts_framework *fw, const int num_tests, fwts_framework_test *test) +static int fwts_framework_run_test(fwts_framework *fw, fwts_framework_test *test) { fwts_framework_minor_test *minor_test; int ret; @@ -627,7 +627,7 @@ static void fwts_framework_tests_run(fwts_framework *fw, fwts_list *tests_to_run fwts_list_foreach(item, tests_to_run) { fwts_framework_test *test = fwts_list_data(fwts_framework_test *, item); - fwts_framework_run_test(fw, fwts_list_len(tests_to_run), test); + fwts_framework_run_test(fw, test); fw->current_major_test_num++; } }