summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorZeng, Star <star.zeng@intel.com>2016-03-30 17:24:35 +0800
committerFeng Tian <feng.tian@intel.com>2016-03-31 10:44:21 +0800
commit307a55fa0169ac990efe046b477db9ccac61b2e2 (patch)
treeeaba8021e6a01b8f8a8c9762fd716b7d48fc18cf /MdeModulePkg
parent9381e149ad72d3f3e942b7734ebff70533dc7699 (diff)
downloadedk2-platforms-307a55fa0169ac990efe046b477db9ccac61b2e2.tar.xz
MdeModulePkg EmmcDxe: Fix GCC build failure with set but unused variables
Cc: Feng Tian <feng.tian@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com>
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.c b/MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.c
index f07540fd36..b88d55d961 100644
--- a/MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.c
+++ b/MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.c
@@ -4,7 +4,7 @@
It produces BlockIo, BlockIo2 and StorageSecurity protocols to allow upper layer
access the EMMC device.
- Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -246,7 +246,6 @@ DiscoverAllPartitions (
)
{
EFI_STATUS Status;
- EFI_SD_MMC_PASS_THRU_PROTOCOL *PassThru;
EMMC_PARTITION *Partition;
EMMC_CSD *Csd;
EMMC_CID *Cid;
@@ -258,7 +257,6 @@ DiscoverAllPartitions (
UINT32 SecCount;
UINT32 GpSizeMult;
- PassThru = Device->Private->PassThru;
Slot = Device->Slot;
Status = EmmcSendStatus (Device, Slot + 1, &DevStatus);