Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1nOnv2-0003pU-1I for mharc-grub-devel@gnu.org; Mon, 28 Feb 2022 16:51:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOmwo-0005H8-Eb for grub-devel@gnu.org; Mon, 28 Feb 2022 15:48:46 -0500 Received: from smtp26.services.sfr.fr ([93.17.128.20]:32890) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOmwm-0000gQ-7z for grub-devel@gnu.org; Mon, 28 Feb 2022 15:48:46 -0500 X-mail-filterd: {"version":"1.3.4", "queueID":"4K6ssx67Vhz1LQLpM", "contextId":"7c1b73b6-4c24-454f-96e9-16eb64177d26"} Received: from debian.numericable.fr (89-156-196-228.rev.numericable.fr [89.156.196.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by msfrf2629.sfr.fr (SMTP Server) with ESMTPS id 4K6ssx67Vhz1LQLpM; Mon, 28 Feb 2022 21:48:37 +0100 (CET) X-mail-filterd: {"version":"1.3.4", "queueID":"4K6ssx5N3zz1LQLpD", "contextId":"2600516c-8744-4479-9e2e-0d315d161625"} X-sfr-mailing: LEGIT X-sfr-spamrating: 40 X-sfr-spam: not-spam DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=noos.fr; s=202006; t=1646081317; h=From:To:Cc:Subject:Date; bh=5op7mi5a2z/YrD2lSZ1+LrxQMApL7w7Fd 0iWX7Sa7gU=; b=bY1yZQ/o2kzEU4KCKb7ed8+PzOoGt7D4ra9DHptJyDl0jcYExLVyD9RpSrt/9 Gs/CkMroKFkr8lPjiw5MOwe6TTj4jhFAFc01TL5LIjAV/QCkiX7SzzSFBab0C6EDYYBUkj+nfkXQ Vy0em8uNqV2yo7K0MymOe6k8BrUXbBq3sg6GFzHj+rk4k28SZNvATZRuWs2r6ihelhFkiUlT9vmZ 8HE2XwAXTtVi7+Eat02Zot1JAk+od+o1w7uRs1hOsUSk/p/+eRiPvUSGdP1/UfwobBH0UJREPb2c Gimxp2ws/W1JxSBttS9BgikrYqCxG+WtWzIWzKczihnMEI/XTaxHQ== Received: from debian.numericable.fr (89-156-196-228.rev.numericable.fr [89.156.196.228]) by msfrf2629.sfr.fr (SMTP Server) with ESMTP id 4K6ssx5N3zz1LQLpD; Mon, 28 Feb 2022 21:48:37 +0100 (CET) Received: from debian.numericable.fr (89-156-196-228.rev.numericable.fr [89.156.196.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ehaouas@noos.fr) by msfrf2629.sfr.fr (SMTP Server) with ESMTPSA; Mon, 28 Feb 2022 21:48:37 +0100 (CET) Authentication-Results: sfr.fr; auth=pass (LOGIN) smtp.auth=ehaouas@noos.fr From: Elyes Haouas To: grub-devel@gnu.org Cc: Elyes Haouas Subject: [PATCH 1/2] grub-core/script/lexer.c: Remove dead increment Date: Mon, 28 Feb 2022 21:48:34 +0100 Message-Id: <20220228204835.66182-1-ehaouas@noos.fr> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=93.17.128.20; envelope-from=ehaouas@noos.fr; helo=smtp26.services.sfr.fr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 28 Feb 2022 16:50:59 -0500 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Feb 2022 20:48:46 -0000 The value stored to 'len' is never read Signed-off-by: Elyes Haouas --- grub-core/script/lexer.c | 1 - 1 file changed, 1 deletion(-) diff --git a/grub-core/script/lexer.c b/grub-core/script/lexer.c index 52004d059..00f6ef184 100644 --- a/grub-core/script/lexer.c +++ b/grub-core/script/lexer.c @@ -216,7 +216,6 @@ grub_script_lexer_yywrap (struct grub_parser_param *parserstate, grub_free (line); line = p; - len = len + plen; } buffer = yy_scan_string (line, lexerstate->yyscanner); -- 2.35.1