Author: hpoussin
Date: Tue Mar 18 07:28:33 2008
New Revision: 32719
URL:
http://svn.reactos.org/svn/reactos?rev=3D32719&view=3Drev
Log:
Fix indentation
Modified:
trunk/reactos/drivers/input/i8042prt/pnp.c
Modified: trunk/reactos/drivers/input/i8042prt/pnp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/input/i8042pr=
t/pnp.c?rev=3D32719&r1=3D32718&r2=3D32719&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/reactos/drivers/input/i8042prt/pnp.c (original)
+++ trunk/reactos/drivers/input/i8042prt/pnp.c Tue Mar 18 07:28:33 2008
@@ -338,8 +338,8 @@
static NTSTATUS
EnableInterrupts(
IN PPORT_DEVICE_EXTENSION DeviceExtension,
- IN UCHAR FlagsToDisable,
- IN UCHAR FlagsToEnable)
+ IN UCHAR FlagsToDisable,
+ IN UCHAR FlagsToEnable)
{
i8042Flush(DeviceExtension);
=
@@ -367,8 +367,8 @@
IN PPORT_DEVICE_EXTENSION DeviceExtension)
{
NTSTATUS Status;
- UCHAR FlagsToDisable =3D 0;
- UCHAR FlagsToEnable =3D 0;
+ UCHAR FlagsToDisable =3D 0;
+ UCHAR FlagsToEnable =3D 0;
=
if (DeviceExtension->DataPort =3D=3D 0)
{
@@ -399,8 +399,6 @@
}
=
/* Connect interrupts */
- Status =3D STATUS_SUCCESS;
-
if (DeviceExtension->Flags & KEYBOARD_PRESENT &&
DeviceExtension->Flags & KEYBOARD_CONNECTED &&
DeviceExtension->Flags & KEYBOARD_STARTED &&
@@ -411,8 +409,8 @@
if (NT_SUCCESS(Status))
{
DeviceExtension->Flags |=3D KEYBOARD_INITIALIZED;
- FlagsToDisable |=3D CCB_KBD_DISAB;
- FlagsToEnable |=3D CCB_KBD_INT_ENAB;
+ FlagsToDisable |=3D CCB_KBD_DISAB;
+ FlagsToEnable |=3D CCB_KBD_INT_ENAB;
}
}
=
@@ -426,13 +424,15 @@
if (NT_SUCCESS(Status))
{
DeviceExtension->Flags |=3D MOUSE_INITIALIZED;
- FlagsToDisable |=3D CCB_MOUSE_DISAB;
- FlagsToEnable |=3D CCB_MOUSE_INT_ENAB;
- }
- }
-
- if(FlagsToEnable)
- Status =3D EnableInterrupts(DeviceExtension, FlagsToDisable, Flags=
ToEnable);
+ FlagsToDisable |=3D CCB_MOUSE_DISAB;
+ FlagsToEnable |=3D CCB_MOUSE_INT_ENAB;
+ }
+ }
+
+ if (FlagsToEnable)
+ Status =3D EnableInterrupts(DeviceExtension, FlagsToDisable, FlagsToEnab=
le);
+ else
+ Status =3D STATUS_SUCCESS;
=
return Status;
}