diff options
author | Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@hpe.com> | 2015-10-06 19:49:13 +0000 |
---|---|---|
committer | lersek <lersek@Edk2> | 2015-10-06 19:49:13 +0000 |
commit | c5a693cea60823e0a3df5a3e92604e4e8936c84a (patch) | |
tree | d44ea37054f39d1ad88edcc5abd5a622a3569b37 /NetworkPkg | |
parent | 58a1e9405274ee1ee0dc15ba93e782fa31a2f3ac (diff) | |
download | edk2-c5a693cea60823e0a3df5a3e92604e4e8936c84a.tar.gz edk2-c5a693cea60823e0a3df5a3e92604e4e8936c84a.tar.bz2 edk2-c5a693cea60823e0a3df5a3e92604e4e8936c84a.zip |
NetworkPkg: HttpDxe: Remove unused local variables
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
Diffstat (limited to 'NetworkPkg')
-rw-r--r-- | NetworkPkg/HttpDxe/HttpImpl.c | 3 | ||||
-rw-r--r-- | NetworkPkg/HttpDxe/HttpProto.c | 6 |
2 files changed, 1 insertions, 8 deletions
diff --git a/NetworkPkg/HttpDxe/HttpImpl.c b/NetworkPkg/HttpDxe/HttpImpl.c index 50c0617436..588e1bb649 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
@@ -227,7 +228,6 @@ EfiHttpRequest ( UINTN UrlLen;
CHAR16 *HostNameStr;
HTTP_TOKEN_WRAP *Wrap;
- HTTP_TCP_TOKEN_WRAP *TcpWrap;
CHAR8 *FileUrl;
if ((This == NULL) || (Token == NULL)) {
@@ -278,7 +278,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 13d5748378..57ea207389 100644 --- a/NetworkPkg/HttpDxe/HttpProto.c +++ b/NetworkPkg/HttpDxe/HttpProto.c @@ -307,10 +307,8 @@ HttpCreateTcp4TxEvent ( )
{
EFI_STATUS Status;
- HTTP_PROTOCOL *HttpInstance;
HTTP_TCP_TOKEN_WRAP *TcpWrap;
- HttpInstance = Wrap->HttpInstance;
TcpWrap = &Wrap->TcpWrap;
Status = gBS->CreateEvent (
@@ -383,10 +381,8 @@ HttpCreateTcp4RxEvent ( )
{
EFI_STATUS Status;
- HTTP_PROTOCOL *HttpInstance;
HTTP_TCP_TOKEN_WRAP *TcpWrap;
- HttpInstance = Wrap->HttpInstance;
TcpWrap = &Wrap->TcpWrap;
Status = gBS->CreateEvent (
@@ -672,10 +668,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;
|