From patchwork Thu Jun 18 13:11:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 50046 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B29C0228CC for ; Thu, 18 Jun 2015 13:13:28 +0000 (UTC) Received: by laar3 with SMTP id r3sf8870352laa.1 for ; Thu, 18 Jun 2015 06:13:27 -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:message-id:subject :precedence:reply-to:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:x-original-sender :x-original-authentication-results:mailing-list; bh=Tk5WMq5Xm8PdJ+P5HH4/qA3NlsA/VkxXOb129Bz9Fik=; b=A+7KKNc+yLFIdO7xLoeB+z9GDRFf+fgoYwdI5uRQvsCxkpDD1+yk5B4P24Qy0JrjH+ xPQyaOeiBhcyeWzzgeFlPTspJnGM/PrGc+laqzqOhTpN5/qeohsnZjoKcTAHcOjK4tYR ZDmAlqlqWZrgQ1fwJgrnEtAFmAbaSAiql26aYLjUleN+ZIDSJmNW676NuY3KBoHjcX+Z 6AKWF9RcpS+teHamwv3EZzQkD3JfW8/MRv/SHYAR5NUpE4rZJSWTDc2eMmPbl7o+0BYm kC4N5exbLm41JmnRSdhh9kP3B9RX4csdqvo7YCUCS35826m1HM3IdjPlr31hRd+hszMf YPuA== X-Gm-Message-State: ALoCoQlHkMUu9ExqQbpcJWixgttc21bDeaqJBeiyP26HG6vTdDgj+J9N8GoAkGE9PnlN4EGHj+lK X-Received: by 10.180.81.170 with SMTP id b10mr13203193wiy.4.1434633207657; Thu, 18 Jun 2015 06:13:27 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.129 with SMTP id s1ls502376las.89.gmail; Thu, 18 Jun 2015 06:13:27 -0700 (PDT) X-Received: by 10.112.170.167 with SMTP id an7mr12876792lbc.103.1434633207497; Thu, 18 Jun 2015 06:13:27 -0700 (PDT) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id f4si6413839lag.112.2015.06.18.06.13.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jun 2015 06:13:27 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by lbbqq2 with SMTP id qq2so51962965lbb.3 for ; Thu, 18 Jun 2015 06:13:27 -0700 (PDT) X-Received: by 10.152.27.1 with SMTP id p1mr12776803lag.112.1434633207355; Thu, 18 Jun 2015 06:13:27 -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.108.230 with SMTP id hn6csp1175726lbb; Thu, 18 Jun 2015 06:13:26 -0700 (PDT) X-Received: by 10.107.165.210 with SMTP id o201mr15246709ioe.2.1434633205937; Thu, 18 Jun 2015 06:13:25 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id f8si5983626iod.10.2015.06.18.06.13.24 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 18 Jun 2015 06:13:25 -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-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Z5Zcz-0003Dr-C0; Thu, 18 Jun 2015 13:13:09 +0000 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Z5Zcx-0003Df-BQ for edk2-devel@lists.sourceforge.net; Thu, 18 Jun 2015 13:13:07 +0000 Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of linaro.org designates 209.85.212.177 as permitted sender) client-ip=209.85.212.177; envelope-from=ard.biesheuvel@linaro.org; helo=mail-wi0-f177.google.com; Received: from mail-wi0-f177.google.com ([209.85.212.177]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1Z5Zcv-0004Ju-Do for edk2-devel@lists.sourceforge.net; Thu, 18 Jun 2015 13:13:07 +0000 Received: by wiga1 with SMTP id a1so170899296wig.0 for ; Thu, 18 Jun 2015 06:12:59 -0700 (PDT) X-Received: by 10.180.187.82 with SMTP id fq18mr27740227wic.47.1434633179328; Thu, 18 Jun 2015 06:12:59 -0700 (PDT) Received: from localhost.localdomain (ip16-2-212-87.adsl2.static.versatel.nl. [87.212.2.16]) by mx.google.com with ESMTPSA id ju2sm13079485wid.12.2015.06.18.06.12.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Jun 2015 06:12:58 -0700 (PDT) From: Ard Biesheuvel To: jiaxin.wu@intel.com, edk2-devel@lists.sourceforge.net Date: Thu, 18 Jun 2015 15:11:56 +0200 Message-Id: <1434633116-8588-1-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.9.1 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: 1Z5Zcv-0004Ju-Do Subject: [edk2] [PATCH] MdeModulePkg: remove unused variables to fix the build 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: , MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.sourceforge.net X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ard.biesheuvel@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 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 Remove two instances of 'DHCP_SERVICE *DhcpSb' in function scope that are assigned but never used afterwards. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel --- MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Impl.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Impl.c b/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Impl.c index ac4b11f09402..821dfbb450a7 100644 --- a/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Impl.c +++ b/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Impl.c @@ -1188,7 +1188,6 @@ Dhcp4InstanceConfigUdpIo ( ) { DHCP_PROTOCOL *Instance; - DHCP_SERVICE *DhcpSb; EFI_DHCP4_TRANSMIT_RECEIVE_TOKEN *Token; EFI_UDP4_CONFIG_DATA UdpConfigData; IP4_ADDR ClientAddr; @@ -1197,7 +1196,6 @@ Dhcp4InstanceConfigUdpIo ( IP4_ADDR SubnetMask; Instance = (DHCP_PROTOCOL *) Context; - DhcpSb = Instance->Service; Token = Instance->Token; ZeroMem (&UdpConfigData, sizeof (EFI_UDP4_CONFIG_DATA)); @@ -1309,7 +1307,6 @@ PxeDhcpInput ( ) { DHCP_PROTOCOL *Instance; - DHCP_SERVICE *DhcpSb; EFI_DHCP4_HEADER *Head; NET_BUF *Wrap; EFI_DHCP4_PACKET *Packet; @@ -1320,7 +1317,6 @@ PxeDhcpInput ( Wrap = NULL; Instance = (DHCP_PROTOCOL *) Context; Token = Instance->Token; - DhcpSb = Instance->Service; // // Don't restart receive if error occurs or DHCP is destroyed.