mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 17:27:03 +00:00
[LIBUSB]
- Make some compilers and static analyzers happy by removing a no-op condition. Patch by Samuel Serapion. CORE-7214 #resolve svn path=/trunk/; revision=67230
This commit is contained in:
parent
211986401c
commit
22d1251dbc
1 changed files with 12 additions and 18 deletions
|
@ -3680,13 +3680,10 @@ CHubController::HandleQueryInterface(
|
|||
//
|
||||
// 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;
|
||||
}
|
||||
|
||||
//
|
||||
// Interface version 1
|
||||
|
@ -3768,8 +3765,6 @@ CHubController::HandleQueryInterface(
|
|||
//
|
||||
// interface version 0
|
||||
//
|
||||
if (IoStack->Parameters.QueryInterface.Version >= 0)
|
||||
{
|
||||
InterfaceDI->Size = IoStack->Parameters.QueryInterface.Size;
|
||||
InterfaceDI->BusContext = PVOID(this);
|
||||
InterfaceDI->InterfaceReference = USBI_InterfaceReference;
|
||||
|
@ -3778,7 +3773,6 @@ CHubController::HandleQueryInterface(
|
|||
InterfaceDI->QueryBusTime = USBDI_QueryBusTime;
|
||||
InterfaceDI->SubmitIsoOutUrb = USBDI_SubmitIsoOutUrb;
|
||||
InterfaceDI->QueryBusInformation = USBDI_QueryBusInformation;
|
||||
}
|
||||
|
||||
//
|
||||
// interface version 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue