summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c
diff options
context:
space:
mode:
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-06 05:00:13 +0000
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-06 05:00:13 +0000
commit4de1f287612ff020ffa44d45e5327c00cd656894 (patch)
tree5a1f10c4e81d9e7ec6ff2da38c355b4284cb473d /MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c
parent9006e2bbe72a9441b00472587528e0bcf3760e7f (diff)
downloadedk2-4de1f287612ff020ffa44d45e5327c00cd656894.tar.gz
edk2-4de1f287612ff020ffa44d45e5327c00cd656894.tar.bz2
edk2-4de1f287612ff020ffa44d45e5327c00cd656894.zip
fix ecc
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7451 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c')
-rw-r--r--MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c
index 69eb926d01..2d2bd2a154 100644
--- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c
+++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c
@@ -1028,7 +1028,7 @@ MatchUsbWwid (
//
// BugBug: only check serial number here, should check Interface Number, Device Vendor Id, Device Product Id in later version
//
- if (StrDesc != NULL && !StrnCmp (StrDesc->String, SnString, StrDesc->Length)) {
+ if (StrDesc != NULL && (StrnCmp (StrDesc->String, SnString, StrDesc->Length) == 0)) {
return TRUE;
}