]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg EmmcDxe: Fix GCC build failure with set but unused variables
authorZeng, Star <star.zeng@intel.com>
Wed, 30 Mar 2016 09:24:35 +0000 (17:24 +0800)
committerFeng Tian <feng.tian@intel.com>
Thu, 31 Mar 2016 02:44:21 +0000 (10:44 +0800)
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>
MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.c

index f07540fd3667281c9104aca0a045173c426f2e07..b88d55d96162c6f8188b8be6f9039f17c29ce71c 100644 (file)
@@ -4,7 +4,7 @@
   It produces BlockIo, BlockIo2 and StorageSecurity protocols to allow upper layer\r
   access the EMMC device.\r
 \r
-  Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -246,7 +246,6 @@ DiscoverAllPartitions (
   )\r
 {\r
   EFI_STATUS                        Status;\r
-  EFI_SD_MMC_PASS_THRU_PROTOCOL     *PassThru;\r
   EMMC_PARTITION                    *Partition;\r
   EMMC_CSD                          *Csd;\r
   EMMC_CID                          *Cid;\r
@@ -258,7 +257,6 @@ DiscoverAllPartitions (
   UINT32                            SecCount;\r
   UINT32                            GpSizeMult;\r
 \r
-  PassThru = Device->Private->PassThru;\r
   Slot     = Device->Slot;\r
 \r
   Status = EmmcSendStatus (Device, Slot + 1, &DevStatus);\r