diff options
author | Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@hpe.com> | 2015-12-21 07:19:08 +0000 |
---|---|---|
committer | vanjeff <vanjeff@Edk2> | 2015-12-21 07:19:08 +0000 |
commit | 6e6407b74fb06f146a8ba25eb2ca2dab43645afd (patch) | |
tree | e302698a6730c5dd8264f253c40f634a230ceaf4 /NetworkPkg | |
parent | 5e6d79abdb449e69f02de8edabd78fd5df4bafef (diff) | |
download | edk2-platforms-6e6407b74fb06f146a8ba25eb2ca2dab43645afd.tar.xz |
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 <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/branches/UDK2015@19425 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'NetworkPkg')
-rw-r--r-- | NetworkPkg/HttpDxe/HttpImpl.c | 3 | ||||
-rw-r--r-- | NetworkPkg/HttpDxe/HttpProto.c | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/NetworkPkg/HttpDxe/HttpImpl.c b/NetworkPkg/HttpDxe/HttpImpl.c index f26d6f4f3f..0fa437dc32 100644 --- a/NetworkPkg/HttpDxe/HttpImpl.c +++ b/NetworkPkg/HttpDxe/HttpImpl.c @@ -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 @@ EfiHttpRequest ( UINTN UrlLen;
CHAR16 *HostNameStr;
HTTP_TOKEN_WRAP *Wrap;
- HTTP_TCP_TOKEN_WRAP *TcpWrap;
CHAR8 *FileUrl;
if ((This == NULL) || (Token == NULL)) {
@@ -290,7 +290,6 @@ EfiHttpRequest ( HostName = NULL;
Wrap = NULL;
HostNameStr = NULL;
- TcpWrap = NULL;
//
// Parse the URI of the remote host.
diff --git a/NetworkPkg/HttpDxe/HttpProto.c b/NetworkPkg/HttpDxe/HttpProto.c index b7cd0fdfcc..165e95cc50 100644 --- a/NetworkPkg/HttpDxe/HttpProto.c +++ b/NetworkPkg/HttpDxe/HttpProto.c @@ -1035,10 +1035,8 @@ HttpConfigureTcp4 ( 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;
|