Author: tfaber
Date: Fri Apr 17 18:27:16 2015
New Revision: 67230
URL:
http://svn.reactos.org/svn/reactos?rev=67230&view=rev
Log:
[LIBUSB]
- Make some compilers and static analyzers happy by removing a no-op condition. Patch by
Samuel Serapion.
CORE-7214 #resolve
Modified:
trunk/reactos/lib/drivers/libusb/hub_controller.cpp
Modified: trunk/reactos/lib/drivers/libusb/hub_controller.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/libusb/hub_con…
==============================================================================
--- trunk/reactos/lib/drivers/libusb/hub_controller.cpp [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/libusb/hub_controller.cpp [iso-8859-1] Fri Apr 17 18:27:16
2015
@@ -3680,13 +3680,10 @@
//
// Interface version 0
//
- if (IoStack->Parameters.QueryInterface.Version >= 0)
- {
- InterfaceHub->Size = IoStack->Parameters.QueryInterface.Size;
- InterfaceHub->BusContext = PVOID(this);
- InterfaceHub->InterfaceReference = USBI_InterfaceReference;
- InterfaceHub->InterfaceDereference = USBI_InterfaceDereference;
- }
+ InterfaceHub->Size = IoStack->Parameters.QueryInterface.Size;
+ InterfaceHub->BusContext = PVOID(this);
+ InterfaceHub->InterfaceReference = USBI_InterfaceReference;
+ InterfaceHub->InterfaceDereference = USBI_InterfaceDereference;
//
// Interface version 1
@@ -3768,17 +3765,14 @@
//
// interface version 0
//
- if (IoStack->Parameters.QueryInterface.Version >= 0)
- {
- InterfaceDI->Size = IoStack->Parameters.QueryInterface.Size;
- InterfaceDI->BusContext = PVOID(this);
- InterfaceDI->InterfaceReference = USBI_InterfaceReference;
- InterfaceDI->InterfaceDereference = USBI_InterfaceDereference;
- InterfaceDI->GetUSBDIVersion = USBDI_GetUSBDIVersion;
- InterfaceDI->QueryBusTime = USBDI_QueryBusTime;
- InterfaceDI->SubmitIsoOutUrb = USBDI_SubmitIsoOutUrb;
- InterfaceDI->QueryBusInformation = USBDI_QueryBusInformation;
- }
+ InterfaceDI->Size = IoStack->Parameters.QueryInterface.Size;
+ InterfaceDI->BusContext = PVOID(this);
+ InterfaceDI->InterfaceReference = USBI_InterfaceReference;
+ InterfaceDI->InterfaceDereference = USBI_InterfaceDereference;
+ InterfaceDI->GetUSBDIVersion = USBDI_GetUSBDIVersion;
+ InterfaceDI->QueryBusTime = USBDI_QueryBusTime;
+ InterfaceDI->SubmitIsoOutUrb = USBDI_SubmitIsoOutUrb;
+ InterfaceDI->QueryBusInformation = USBDI_QueryBusInformation;
//
// interface version 1