[MOUHID]
authorPierre Schweitzer <pierre@reactos.org>
Sat, 15 Nov 2014 13:41:24 +0000 (13:41 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 15 Nov 2014 13:41:24 +0000 (13:41 +0000)
[KBDHID]
Remove redundant code in DriverEntry()

svn path=/trunk/; revision=65408

reactos/drivers/hid/kbdhid/kbdhid.c
reactos/drivers/hid/mouhid/mouhid.c

index dd504ec..f33a99d 100644 (file)
@@ -1038,8 +1038,6 @@ DriverEntry(
     IN PUNICODE_STRING RegPath)
 {
     /* initialize driver object */
-    DriverObject->DriverUnload = KbdHid_Unload;
-    DriverObject->DriverExtension->AddDevice = KbdHid_AddDevice;
     DriverObject->MajorFunction[IRP_MJ_CREATE] = KbdHid_Create;
     DriverObject->MajorFunction[IRP_MJ_CLOSE] = KbdHid_Close;
     DriverObject->MajorFunction[IRP_MJ_FLUSH_BUFFERS] = KbdHid_Flush;
index 9cb6fdc..7ebb4d4 100644 (file)
@@ -1239,8 +1239,6 @@ DriverEntry(
     /* FIXME check for parameters 'UseOnlyMice', 'TreatAbsoluteAsRelative', 'TreatAbsolutePointerAsAbsolute' */
 
     /* initialize driver object */
-    DriverObject->DriverUnload = MouHid_Unload;
-    DriverObject->DriverExtension->AddDevice = MouHid_AddDevice;
     DriverObject->MajorFunction[IRP_MJ_CREATE] = MouHid_Create;
     DriverObject->MajorFunction[IRP_MJ_CLOSE] = MouHid_Close;
     DriverObject->MajorFunction[IRP_MJ_FLUSH_BUFFERS] = MouHid_Flush;