From patchwork Fri Sep 19 23:02:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier Martin X-Patchwork-Id: 37658 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f69.google.com (mail-ee0-f69.google.com [74.125.83.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9008A2054D for ; Fri, 19 Sep 2014 23:05:06 +0000 (UTC) Received: by mail-ee0-f69.google.com with SMTP id b15sf558320eek.4 for ; Fri, 19 Sep 2014 16:05:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:thread-topic :thread-index:message-id:accept-language:acceptlanguage:mime-version :cc:subject:precedence:reply-to:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:errors-to :x-original-sender:x-original-authentication-results:mailing-list :content-language:content-type; bh=PJ5PXAf3J5F9XG6wHTj0Pnjgd1/q6dcoED8MObESduI=; b=gS8M85xQCnPgpIgyO+0dR5V1QrrST92p1hHIMIrwAJDNv6f1Y6Evc4jiLj4BIdwVjr Xz06AD32fd/wwy/MAwF9jYVjzULw4DRf5bxXrEM/3DHxGhjpXZREMd2FdJiuSTHoEslb uqpzBC75y8lmxjGLXjgvuC+kONHoDZ7Xdc44wl3U7Csv73SuqKljwszplRFakLSkwhSZ TbL6FjVYW14AYN/GMKMX7scrE+IZQAcl3rQuU8xOWAj6CQD5MoBVJSQPeJUSLd0kqyQj LGekV78HJU6/+2fwrJDnj8aQKwcnVY7GNb2O70X0CjhrgEH1y12ZpM2FduleDgL3+1Oo qKIw== X-Gm-Message-State: ALoCoQkZHh0RNvjk1gTSiIbo6HPLsIbQll+Yb10kUhLhhbiELfaNlJ+AuR70HSn4pPfZKWKOBB8M X-Received: by 10.194.205.138 with SMTP id lg10mr19042wjc.5.1411167905657; Fri, 19 Sep 2014 16:05:05 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.175 with SMTP id az15ls363443lab.96.gmail; Fri, 19 Sep 2014 16:05:05 -0700 (PDT) X-Received: by 10.112.34.143 with SMTP id z15mr9233962lbi.86.1411167905475; Fri, 19 Sep 2014 16:05:05 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com [209.85.215.50]) by mx.google.com with ESMTPS id we6si4323795lbb.77.2014.09.19.16.05.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 19 Sep 2014 16:05:05 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by mail-la0-f50.google.com with SMTP id ty20so4073002lab.9 for ; Fri, 19 Sep 2014 16:05:05 -0700 (PDT) X-Received: by 10.112.198.163 with SMTP id jd3mr9288010lbc.72.1411167905243; Fri, 19 Sep 2014 16:05:05 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp1020937lbb; Fri, 19 Sep 2014 16:05:03 -0700 (PDT) X-Received: by 10.50.142.100 with SMTP id rv4mr59328117igb.43.1411167903196; Fri, 19 Sep 2014 16:05:03 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id vn9si634646igb.55.2014.09.19.16.05.02 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 19 Sep 2014 16:05:03 -0700 (PDT) Received-SPF: pass (google.com: domain of edk2-devel-bounces@lists.sourceforge.net designates 216.34.181.88 as permitted sender) client-ip=216.34.181.88; Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XV7ET-00015L-P5; Fri, 19 Sep 2014 23:04:53 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XV7ES-00015B-2C for edk2-devel@lists.sourceforge.net; Fri, 19 Sep 2014 23:04:52 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of arm.com designates 195.130.217.12 as permitted sender) client-ip=195.130.217.12; envelope-from=olivier.martin@arm.com; helo=service88.mimecast.com; Received: from service88.mimecast.com ([195.130.217.12]) by sog-mx-1.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1XV7EQ-000306-UN for edk2-devel@lists.sourceforge.net; Fri, 19 Sep 2014 23:04:52 +0000 Received: from emea-cam-gw2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) (Using TLS) by service88.mimecast.com; Sat, 20 Sep 2014 00:04:44 +0100 Received: from george.Emea.Arm.com ([fe80::4c19:a8f:5c9a:76df]) by emea-cam-gw2.Emea.Arm.com ([::1]) with mapi; Sat, 20 Sep 2014 00:04:41 +0100 From: Olivier Martin To: "jeff.fan@intel.com" Date: Sat, 20 Sep 2014 00:02:04 +0100 Thread-Topic: [PATCH] IntelFrameworkModulePkg/BdsDxe: Removed unused variables Thread-Index: AQHP1F4NdcLQHDayz0e5dg/a8sohuw== Message-ID: <0877601216922E4B83A7129715B5DA2BBE7474DF31@GEORGE.Emea.Arm.com> Accept-Language: en-US, en-GB X-MS-Has-Attach: yes X-MS-TNEF-Correlator: acceptlanguage: en-US, en-GB MIME-Version: 1.0 X-MC-Unique: 114092000044401202 X-Spam-Score: -1.5 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record X-Headers-End: 1XV7EQ-000306-UN Cc: "edk2-devel@lists.sourceforge.net" Subject: [edk2] [PATCH] IntelFrameworkModulePkg/BdsDxe: Removed unused variables X-BeenThere: edk2-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list Reply-To: edk2-devel@lists.sourceforge.net List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: edk2-devel-bounces@lists.sourceforge.net X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: olivier.martin@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Content-Language: en-GB Dear IntelFrameworkModulePkg maintainer, please find the attached patch that removes some unused assigned variables. Some compiler (GCC in this case) raises a warning/error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Regards, Olivier -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No: 2557590 ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No: 2548782 ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk Reviewed-by: Eric Dong Signed-off-by: Olivier Martin Reviewed-by: Eric Dong Signed-off-by: Olivier Martin >From 607704f7ee892cc9dc8bf1535acf23a691fac212 Mon Sep 17 00:00:00 2001 From: Olivier Martin Date: Fri, 19 Sep 2014 22:27:00 +0100 Subject: IntelFrameworkModulePkg/BdsDxe: Removed unused variables Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin --- .../Universal/BdsDxe/BootMaint/UpdatePage.c | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/UpdatePage.c b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/UpdatePage.c index 20e17dd..7d5861e 100644 --- a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/UpdatePage.c +++ b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/UpdatePage.c @@ -543,7 +543,6 @@ UpdateOrderPage ( UINT16 Index; UINT16 OptionIndex; VOID *OptionsOpCodeHandle; - BM_LOAD_CONTEXT *NewLoadContext; BOOLEAN BootOptionFound; UINT32 *OptionOrder; EFI_QUESTION_ID QuestionId; @@ -583,7 +582,6 @@ UpdateOrderPage ( BootOptionFound = FALSE; for (Index = 0; Index < OptionMenu->MenuNumber; Index++) { NewMenuEntry = BOpt_GetMenuEntry (OptionMenu, Index); - NewLoadContext = (BM_LOAD_CONTEXT *) NewMenuEntry->VariableContext; if ((UINT32) (NewMenuEntry->OptionNumber + 1) == OptionOrder[OptionIndex]) { BootOptionFound = TRUE; break; @@ -892,7 +890,6 @@ UpdateTerminalPage ( UINT8 Index; UINT8 CheckFlags; BM_MENU_ENTRY *NewMenuEntry; - BM_TERMINAL_CONTEXT *NewTerminalContext; VOID *OptionsOpCodeHandle; UINTN CurrentTerminal; @@ -908,8 +905,6 @@ UpdateTerminalPage ( return ; } - NewTerminalContext = (BM_TERMINAL_CONTEXT *) NewMenuEntry->VariableContext; - OptionsOpCodeHandle = HiiAllocateOpCodeHandle (); ASSERT (OptionsOpCodeHandle != NULL); -- 1.7.5.4