From f5ec0a86d801442fe35c49bbe6c4b6cb6aa955cc Mon Sep 17 00:00:00 2001 From: Olivier Martin Date: Wed, 21 Aug 2013 06:49:25 +0000 Subject: [PATCH] MdeModulePkg/DiskIoDxe: Fixed GCC build error Error: Variable "Media" was set but never used. Change-Id: I1297b3de797e436ed403375c801945b3202b532c Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14575 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIo.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIo.c b/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIo.c index 4bd6772046..fc04363eba 100644 --- a/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIo.c +++ b/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIo.c @@ -131,7 +131,6 @@ DiskIoDriverBindingStart ( EFI_STATUS Status; DISK_IO_PRIVATE_DATA *Instance; EFI_TPL OldTpl; - EFI_BLOCK_IO_MEDIA *Media; Instance = NULL; @@ -173,8 +172,6 @@ DiskIoDriverBindingStart ( goto ErrorExit; } - Media = Instance->BlockIo->Media; - // // The BlockSize and IoAlign of BlockIo and BlockIo2 should equal. //