diff options
author | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-12 08:41:34 +0000 |
---|---|---|
committer | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-12 08:41:34 +0000 |
commit | cb0b858d6ec4e57633e80303db4564b06fbe9ee4 (patch) | |
tree | 5b69c57742f041634d32b2b085523e5e2cc6423f /MdeModulePkg/Bus/Usb | |
parent | 525aded9470895475b01f123c3af45fbd74396aa (diff) | |
download | edk2-platforms-cb0b858d6ec4e57633e80303db4564b06fbe9ee4.tar.xz |
add assert logic to avoid Klocwork fake report
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7513 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus/Usb')
-rw-r--r-- | MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c index 0577167816..eba9017e4c 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c +++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c @@ -340,6 +340,7 @@ UsbSelectSetting ( IfDesc->ActiveIndex = Index;
+ ASSERT (Setting != NULL);
DEBUG ((EFI_D_INFO, "UsbSelectSetting: setting %d selected for interface %d\n",
Alternate, Setting->Desc.InterfaceNumber));
|