From 307a55fa0169ac990efe046b477db9ccac61b2e2 Mon Sep 17 00:00:00 2001 From: "Zeng, Star" Date: Wed, 30 Mar 2016 17:24:35 +0800 Subject: [PATCH] MdeModulePkg EmmcDxe: Fix GCC build failure with set but unused variables Cc: Feng Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Feng Tian --- MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.c | 4 +--- 1 file changed, 1 insertion(+), 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.
+ Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.
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);