From patchwork Wed Sep 7 02:32:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: chen zhang X-Patchwork-Id: 604053 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 3247AECAAD5 for ; Wed, 7 Sep 2022 02:33:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229619AbiIGCdL (ORCPT ); Tue, 6 Sep 2022 22:33:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229747AbiIGCdK (ORCPT ); Tue, 6 Sep 2022 22:33:10 -0400 Received: from mailgw.kylinos.cn (unknown [124.126.103.232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A01293229 for ; Tue, 6 Sep 2022 19:33:04 -0700 (PDT) X-UUID: 45cbe75e8763406dba3810755e4434fc-20220907 X-CPASD-INFO: 2930848a23544d76ab7174cf58a7f62d@e4ltUGVmZpFeU3eAg6eCcIGTZ2FnYIO 1d3KBaJRmXoSVhH5xTV5uYFV9fWtVYV9dYVR6eGxQYmBgZFJ4i3-XblBhXoZgUZB3gXttUGhiaA== X-CLOUD-ID: 2930848a23544d76ab7174cf58a7f62d X-CPASD-SUMMARY: SIP:-1, APTIP:-2.0, KEY:0.0, FROMBLOCK:1, OB:1.0, URL:-5, TVAL:185. 0, ESV:0.0, ECOM:-5.0, ML:0.0, FD:0.0, CUTS:77.0, IP:-2.0, MAL:-5.0, PHF:-5.0, PHC:-5. 0, SPF:4.0, EDMS:-5, IPLABEL:4480.0, FROMTO:0, AD:0, FFOB:1.0, CFOB:0.0, SPC:0, SIG:-5 , AUF:2, DUF:4210, ACD:72, DCD:72, SL:0, EISP:0, AG:0, CFC:0.336, CFSR:0.138, UAT:0, RAF :0, IMG:-5.0, DFA:0, DTA:0, IBL:-2.0, ADI:-5, SBL:0, REDM:0, REIP:0, ESB:0, ATTNUM:0, EA F:0,CID:-5.0,VERSION:2.3.17 X-CPASD-ID: 45cbe75e8763406dba3810755e4434fc-20220907 X-CPASD-BLOCK: 1000 X-CPASD-STAGE: 1 X-UUID: 45cbe75e8763406dba3810755e4434fc-20220907 X-User: chenzhang@kylinos.cn Received: from localhost.localdomain [(112.64.161.44)] by mailgw (envelope-from ) (Generic MTA) with ESMTP id 2071156634; Wed, 07 Sep 2022 10:33:27 +0800 From: chen zhang To: ardb@kernel.org, baskov@ispras.ru, ilias.apalodimas@linaro.org Cc: chenzhang_0901@163.com, linux-efi@vger.kernel.org, chen zhang Subject: [PATCH] efi/x86: libstub: remove unused variables Date: Wed, 7 Sep 2022 10:32:55 +0800 Message-Id: <20220907023255.35237-1-chenzhang@kylinos.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org The variable "has_system_memory" is unused in function ‘adjust_memory_range_protection’, remove it. Signed-off-by: chen zhang --- drivers/firmware/efi/libstub/x86-stub.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/firmware/efi/libstub/x86-stub.c b/drivers/firmware/efi/libstub/x86-stub.c index 05ae8bcc9d67..43ca665af610 100644 --- a/drivers/firmware/efi/libstub/x86-stub.c +++ b/drivers/firmware/efi/libstub/x86-stub.c @@ -220,7 +220,6 @@ adjust_memory_range_protection(unsigned long start, unsigned long size) unsigned long end, next; unsigned long rounded_start, rounded_end; unsigned long unprotect_start, unprotect_size; - int has_system_memory = 0; if (efi_dxe_table == NULL) return;