From mboxrd@z Thu Jan 1 00:00:00 1970 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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1360CC433EF for ; Wed, 2 Mar 2022 10:53:37 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9C4B983C88; Wed, 2 Mar 2022 11:53:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org 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=kernel.org header.i=@kernel.org header.b="JB6Z0JgU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4CC2083CAE; Wed, 2 Mar 2022 11:52:59 +0100 (CET) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2968583C74 for ; Wed, 2 Mar 2022 11:52:48 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1E35C61742; Wed, 2 Mar 2022 10:52:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4351C340EF; Wed, 2 Mar 2022 10:52:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646218365; bh=waIhMxDzpf3cuqB7N0fBh15a7Ktp+s4Lie4h7eCT+ds=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JB6Z0JgUNjWPicjyjC5y/KVYRnPsSH6CcfBQZnmg9XR7bXd92U7ghkpbtuRkQatc1 /tr5LTjzeSJm1Y5ZMWMJlB4eygtjjcQiFjEfNGhL8gofnxGzUYoRnFcgnWzSfBUY9L sRdQZ3XkB5zRRjxlPiH9wwOC0lJaH5cpjbKxIrGUFxHzj9l+oJT3WRCgtrHugILtFN Oufzsveu3EO20D6cGr23N2mQ0zil7z4ar0zL8rDHhdjs47rU+NFrm1sVPEIZVYBZRY FPCXVocooSwsrKLSDrdp7gD/ibLw7eM7UHA5+kismorNPH7EzsUc2EPCg/GzbLTLZV xzlZjLLmlrdvA== Received: by pali.im (Postfix) id 11A8996D; Wed, 2 Mar 2022 11:52:43 +0100 (CET) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Stefan Roese , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Tony Dinh Cc: u-boot@lists.denx.de Subject: [PATCH u-boot-marvell 02/10] tools: kwboot: Remove msg_req_delay Date: Wed, 2 Mar 2022 11:49:19 +0100 Message-Id: <20220302104927.18607-3-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220302104927.18607-1-pali@kernel.org> References: <20220302104927.18607-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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.5 at phobos.denx.de X-Virus-Status: Clean Variable msg_req_delay is set but never used. So completely remove it. Signed-off-by: Pali Rohár --- tools/kwboot.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tools/kwboot.c b/tools/kwboot.c index 5a7c53ce8929..4dfb1038b4ff 100644 --- a/tools/kwboot.c +++ b/tools/kwboot.c @@ -48,11 +48,9 @@ static unsigned char kwboot_msg_debug[] = { }; /* Defines known to work on Kirkwood */ -#define KWBOOT_MSG_REQ_DELAY 10 /* ms */ #define KWBOOT_MSG_RSP_TIMEO 50 /* ms */ /* Defines known to work on Armada XP */ -#define KWBOOT_MSG_REQ_DELAY_AXP 1000 /* ms */ #define KWBOOT_MSG_RSP_TIMEO_AXP 1000 /* ms */ /* @@ -285,7 +283,6 @@ static const char kwb_baud_magic[16] = "$baudratechange"; static int kwboot_verbose; -static int msg_req_delay = KWBOOT_MSG_REQ_DELAY; static int msg_rsp_timeo = KWBOOT_MSG_RSP_TIMEO; static int blk_rsp_timeo = KWBOOT_BLK_RSP_TIMEO; @@ -1725,7 +1722,6 @@ kwboot_usage(FILE *stream, char *progname) " -D : boot without preamble (Dove)\n"); fprintf(stream, " -d: enter debug mode\n"); fprintf(stream, " -a: use timings for Armada XP\n"); - fprintf(stream, " -q : use specific request-delay\n"); fprintf(stream, " -s : use specific response-timeout\n"); fprintf(stream, " -o : use specific xmodem block timeout\n"); @@ -1804,12 +1800,11 @@ main(int argc, char **argv) break; case 'a': - msg_req_delay = KWBOOT_MSG_REQ_DELAY_AXP; msg_rsp_timeo = KWBOOT_MSG_RSP_TIMEO_AXP; break; case 'q': - msg_req_delay = atoi(optarg); + /* nop, for backward compatibility */ break; case 's': -- 2.20.1