From 9935f927a2412b066e4c538ab9face2fbc4897a3 Mon Sep 17 00:00:00 2001 From: vanjeff Date: Fri, 7 Mar 2008 05:51:04 +0000 Subject: Merger tracker:Fixed a USB bus driver logic error git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4805 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'MdeModulePkg') diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c index 3badf89..cd3e72e 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c +++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c @@ -956,8 +956,8 @@ MatchUsbClass ( // // If class or subclass or protocol is 0, the counterparts in interface should be checked. // - if (DevDesc->DeviceClass == 0 && - DevDesc->DeviceSubClass == 0 && + if (DevDesc->DeviceClass == 0 || + DevDesc->DeviceSubClass == 0 || DevDesc->DeviceProtocol == 0) { if ((UsbClassDevicePathPtr->DeviceClass == ActIfDesc->InterfaceClass || @@ -969,7 +969,7 @@ MatchUsbClass ( return TRUE; } - } else if ((UsbClassDevicePathPtr->DeviceClass != DevDesc->DeviceClass || + } else if ((UsbClassDevicePathPtr->DeviceClass == DevDesc->DeviceClass || UsbClassDevicePathPtr->DeviceClass == 0xff) && (UsbClassDevicePathPtr->DeviceSubClass == DevDesc->DeviceSubClass || UsbClassDevicePathPtr->DeviceSubClass == 0xff) && -- cgit v1.1