- Fix typo
[USBCCGP]
- Remove unused variable

svn path=/branches/usb-bringup-trunk/; revision=55327
This commit is contained in:
Johannes Anderwald 2012-01-30 13:31:05 +00:00
parent 679512e16c
commit 652e0ab582
2 changed files with 2 additions and 5 deletions

View file

@ -575,7 +575,7 @@ KbdHid_StartDevice(
MmBuildMdlForNonPagedPool(DeviceExtension->ReportMDL);
/* get max number of buttons */
Buttons = HidP_MaxUsageListLength(HidP_Input, HID_USAGE_PAGE_BUTTON, PreparsedData);
Buttons = HidP_MaxUsageListLength(HidP_Input, HID_USAGE_PAGE_KEYBOARD, PreparsedData);
DPRINT1("[KBDHID] Buttons %lu\n", Buttons);
ASSERT(Buttons > 0);

View file

@ -188,7 +188,6 @@ USBCCGP_PdoHandleQueryId(
{
PIO_STACK_LOCATION IoStack;
PUNICODE_STRING DeviceString = NULL;
UNICODE_STRING TempString;
PPDO_DEVICE_EXTENSION PDODeviceExtension;
NTSTATUS Status;
LPWSTR Buffer;
@ -855,12 +854,10 @@ PDO_HandleInternalDeviceControl(
return Status;
}
}
else if (Urb->UrbHeader.Function == URB_FUNCTION_GET_DESCRIPTOR_FROM_INTERFACE)
else
{
DPRINT1("URB_FUNCTION_GET_DESCRIPTOR_FROM_INTERFACE\n");
IoSkipCurrentIrpStackLocation(Irp);
Status = IoCallDriver(PDODeviceExtension->NextDeviceObject, Irp);
DPRINT1("URB_FUNCTION_GET_DESCRIPTOR_FROM_INTERFACE Status %x\n", Status);
return Status;
}
}