Revision: 19425
          http://sourceforge.net/p/edk2/code/19425
Author:   vanjeff
Date:     2015-12-21 07:19:08 +0000 (Mon, 21 Dec 2015)
Log Message:
-----------
NetworkPkg: HttpDxe: Remove unused local variables

Fix gcc build errors [-Werror=unused-but-set-variable].

(Sync patch r18573 from main trunk.)

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Samer El-Haj-Mahmoud <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Build-tested-by: Laszlo Ersek <[email protected]>
[[email protected]: add more details to commit message]
Signed-off-by: Laszlo Ersek <[email protected]>

Revision Links:
--------------
    http://sourceforge.net/p/edk2/code/18573

Modified Paths:
--------------
    branches/UDK2015/NetworkPkg/HttpDxe/HttpImpl.c
    branches/UDK2015/NetworkPkg/HttpDxe/HttpProto.c

Modified: branches/UDK2015/NetworkPkg/HttpDxe/HttpImpl.c
===================================================================
--- branches/UDK2015/NetworkPkg/HttpDxe/HttpImpl.c      2015-12-21 05:09:23 UTC 
(rev 19424)
+++ branches/UDK2015/NetworkPkg/HttpDxe/HttpImpl.c      2015-12-21 07:19:08 UTC 
(rev 19425)
@@ -2,6 +2,7 @@
   Implementation of EFI_HTTP_PROTOCOL protocol interfaces.
 
   Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
+  (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>
 
   This program and the accompanying materials
   are licensed and made available under the terms and conditions of the BSD 
License
@@ -243,7 +244,6 @@
   UINTN                         UrlLen;
   CHAR16                        *HostNameStr;
   HTTP_TOKEN_WRAP               *Wrap;
-  HTTP_TCP_TOKEN_WRAP           *TcpWrap;
   CHAR8                         *FileUrl;
   
   if ((This == NULL) || (Token == NULL)) {
@@ -290,7 +290,6 @@
   HostName    = NULL;
   Wrap        = NULL;
   HostNameStr = NULL;
-  TcpWrap     = NULL;
 
   //
   // Parse the URI of the remote host.

Modified: branches/UDK2015/NetworkPkg/HttpDxe/HttpProto.c
===================================================================
--- branches/UDK2015/NetworkPkg/HttpDxe/HttpProto.c     2015-12-21 05:09:23 UTC 
(rev 19424)
+++ branches/UDK2015/NetworkPkg/HttpDxe/HttpProto.c     2015-12-21 07:19:08 UTC 
(rev 19425)
@@ -1035,10 +1035,8 @@
   EFI_TCP4_CONFIG_DATA       *Tcp4CfgData;
   EFI_TCP4_ACCESS_POINT      *Tcp4AP;
   EFI_TCP4_OPTION            *Tcp4Option;
-  HTTP_TCP_TOKEN_WRAP        *TcpWrap;
 
   ASSERT (HttpInstance != NULL);
-  TcpWrap = &Wrap->TcpWrap;
 
 
   Tcp4CfgData = &HttpInstance->Tcp4CfgData;


------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to