summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Bus
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-13 15:21:32 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-13 15:21:32 +0000
commit76e7eeea17bfb722905d43f5003f7e6a70c67075 (patch)
treef7b5ee04fd910f11068abfcb4a5b8f0f506892d8 /MdeModulePkg/Bus
parent2a9f433bc9d885511869524a7657787ed1ab909b (diff)
downloadedk2-platforms-76e7eeea17bfb722905d43f5003f7e6a70c67075.tar.xz
MdeModulePkg/UsbBusDxe: Removed unused variable
'SnString' is set but not used. Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12340 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus')
-rw-r--r--MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c
index 9bebc27bfe..e67a88541b 100644
--- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c
+++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c
@@ -997,7 +997,6 @@ MatchUsbWwid (
EFI_USB_INTERFACE_DESCRIPTOR *ActIfDesc;
EFI_USB_DEVICE_DESCRIPTOR *DevDesc;
EFI_USB_STRING_DESCRIPTOR *StrDesc;
- UINT16 *SnString;
UINT16 Index;
CHAR16 *CompareStr;
UINTN CompareLen;
@@ -1013,7 +1012,6 @@ MatchUsbWwid (
ASSERT (IfDesc->ActiveIndex < USB_MAX_INTERFACE_SETTING);
ActIfDesc = &(IfDesc->Settings[IfDesc->ActiveIndex]->Desc);
DevDesc = &(UsbIf->Device->DevDesc->Desc);
- SnString = (UINT16 *) ((UINT8 *)UsbWWIDDevicePathPtr + 10);
//
// In addition, Hub interface is always matched for this policy.