]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg: HttpDxe: Remove unused local variables
authorSamer El-Haj-Mahmoud <samer.el-haj-mahmoud@hpe.com>
Tue, 6 Oct 2015 19:49:13 +0000 (19:49 +0000)
committerlersek <lersek@Edk2>
Tue, 6 Oct 2015 19:49:13 +0000 (19:49 +0000)
Fix gcc build errors [-Werror=unused-but-set-variable].

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@hpe.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Build-tested-by: Laszlo Ersek <lersek@redhat.com>
[lersek@redhat.com: add more details to commit message]
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18573 6f19259b-4bc3-4df7-8a09-765794883524

NetworkPkg/HttpDxe/HttpImpl.c
NetworkPkg/HttpDxe/HttpProto.c

index 50c061743665b4c1511b5a849dca76dca0833029..588e1bb6499e155dbf8d07da89fa3b5e92c13976 100644 (file)
@@ -2,6 +2,7 @@
   Implementation of EFI_HTTP_PROTOCOL protocol interfaces.\r
 \r
   Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
+  (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -227,7 +228,6 @@ EfiHttpRequest (
   UINTN                         UrlLen;\r
   CHAR16                        *HostNameStr;\r
   HTTP_TOKEN_WRAP               *Wrap;\r
-  HTTP_TCP_TOKEN_WRAP           *TcpWrap;\r
   CHAR8                         *FileUrl;\r
   \r
   if ((This == NULL) || (Token == NULL)) {\r
@@ -278,7 +278,6 @@ EfiHttpRequest (
   HostName    = NULL;\r
   Wrap        = NULL;\r
   HostNameStr = NULL;\r
-  TcpWrap     = NULL;\r
 \r
   //\r
   // Parse the URI of the remote host.\r
index 13d5748378e3e645101a4bd8128390e4ddf378af..57ea2073893dfc69e195bdea246d1dcd23dca10d 100644 (file)
@@ -307,10 +307,8 @@ HttpCreateTcp4TxEvent (
   )\r
 {\r
   EFI_STATUS               Status;\r
-  HTTP_PROTOCOL            *HttpInstance;\r
   HTTP_TCP_TOKEN_WRAP      *TcpWrap;\r
 \r
-  HttpInstance = Wrap->HttpInstance;\r
   TcpWrap      = &Wrap->TcpWrap;\r
 \r
   Status = gBS->CreateEvent (\r
@@ -383,10 +381,8 @@ HttpCreateTcp4RxEvent (
   )\r
 {\r
   EFI_STATUS               Status;\r
-  HTTP_PROTOCOL            *HttpInstance;\r
   HTTP_TCP_TOKEN_WRAP      *TcpWrap;\r
 \r
-  HttpInstance = Wrap->HttpInstance;\r
   TcpWrap      = &Wrap->TcpWrap;\r
 \r
   Status = gBS->CreateEvent (\r
@@ -672,10 +668,8 @@ HttpConfigureTcp4 (
   EFI_TCP4_CONFIG_DATA       *Tcp4CfgData;\r
   EFI_TCP4_ACCESS_POINT      *Tcp4AP;\r
   EFI_TCP4_OPTION            *Tcp4Option;\r
-  HTTP_TCP_TOKEN_WRAP        *TcpWrap;\r
 \r
   ASSERT (HttpInstance != NULL);\r
-  TcpWrap = &Wrap->TcpWrap;\r
 \r
 \r
   Tcp4CfgData = &HttpInstance->Tcp4CfgData;\r