From patchwork Mon Jul 31 06:26:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 13333661 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CFD52C001DE for ; Mon, 31 Jul 2023 06:27:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230077AbjGaG1C (ORCPT ); Mon, 31 Jul 2023 02:27:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229956AbjGaG1B (ORCPT ); Mon, 31 Jul 2023 02:27:01 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF3D51A3; Sun, 30 Jul 2023 23:27:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1690784818; bh=k9l2McklzZ+f7yRkzY3nh6NN3e/IqcLnQTelqUxUMw8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=n9igOyZGuaqKnQVBE5HfbFFsddmIwBR9WR4ZmGbZrNSe25048Ohf6zphGVYGNuWoF G/mcZcfL4ZtiPeReeA39j8/4bmWou/ynYarqyHj14A35hXRgWBQYA1adhm8NDVRIJc JK3pyawT4fz4lGn++rCtyEuDhClYUKJuovYcW2wU= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Mon, 31 Jul 2023 08:26:57 +0200 Subject: [PATCH 2/4] selftests/nolibc: drop unused variables MIME-Version: 1.0 Message-Id: <20230731-nolibc-warnings-v1-2-74973d2a52d7@weissschuh.net> References: <20230731-nolibc-warnings-v1-0-74973d2a52d7@weissschuh.net> In-Reply-To: <20230731-nolibc-warnings-v1-0-74973d2a52d7@weissschuh.net> To: Willy Tarreau , Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Yuan Tan , Zhangjin Wu , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1690784818; l=1029; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=k9l2McklzZ+f7yRkzY3nh6NN3e/IqcLnQTelqUxUMw8=; b=aJonl+8VdC7MJHCYyAUY48LuP1WOU57ea5CAhF2u1SPA6lIUOjRsfNDoKxZMc047hBCDfCuNU zaJ4m2GdcOWCTdv2NApJXy8//W/CSAv1pUpFT0ySGEf+epkGIY6p5Sn X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org These got copied around as new testcases where created. Signed-off-by: Thomas Weißschuh --- tools/testing/selftests/nolibc/nolibc-test.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tools/testing/selftests/nolibc/nolibc-test.c b/tools/testing/selftests/nolibc/nolibc-test.c index 53e2d448eded..3064191681d0 100644 --- a/tools/testing/selftests/nolibc/nolibc-test.c +++ b/tools/testing/selftests/nolibc/nolibc-test.c @@ -786,9 +786,7 @@ int run_syscall(int min, int max) int run_stdlib(int min, int max) { int test; - int tmp; int ret = 0; - void *p1, *p2; for (test = min; test >= 0 && test <= max; test++) { int llen = 0; /* line length */ @@ -929,9 +927,7 @@ static int expect_vfprintf(int llen, size_t c, const char *expected, const char static int run_vfprintf(int min, int max) { int test; - int tmp; int ret = 0; - void *p1, *p2; for (test = min; test >= 0 && test <= max; test++) { int llen = 0; /* line length */