From 73c421b8ff7be4f43ef17a6b752d82566e83a480 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 17 Jun 2009 22:05:39 +0000 Subject: 2009-06-17 Joel Sherrill * console/ps2_mouse.c: Fix inconsistent spacing. --- c/src/lib/libbsp/i386/pc386/ChangeLog | 4 ++++ c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c | 32 ++++++++++++------------- 2 files changed, 19 insertions(+), 17 deletions(-) (limited to 'c/src') diff --git a/c/src/lib/libbsp/i386/pc386/ChangeLog b/c/src/lib/libbsp/i386/pc386/ChangeLog index a5e514d726..abcf925048 100644 --- a/c/src/lib/libbsp/i386/pc386/ChangeLog +++ b/c/src/lib/libbsp/i386/pc386/ChangeLog @@ -1,3 +1,7 @@ +2009-06-17 Joel Sherrill + + * console/ps2_mouse.c: Fix inconsistent spacing. + 2009-06-12 Chris Johns * ide/ide.c: Format the data output in DEBUG mode. diff --git a/c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c b/c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c index cc4e42eb13..e4635bd361 100644 --- a/c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c +++ b/c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c @@ -438,26 +438,24 @@ static int release_aux(void) static int open_aux(void) { - rtems_status_code status; + int status; - if (aux_count++) { - return 0; - } - queue->head = queue->tail = 0; /* Flush input queue */ + if (aux_count++) { + return 0; + } + queue->head = queue->tail = 0; /* Flush input queue */ - status = BSP_install_rtems_irq_handler( &ps2_isr_data ); - if( !status ) - { - printk("Error installing ps2-mouse interrupt handler!\n" ); - rtems_fatal_error_occurred( status ); - } + status = BSP_install_rtems_irq_handler( &ps2_isr_data ); + if( !status ) { + printk("Error installing ps2-mouse interrupt handler!\n" ); + rtems_fatal_error_occurred( status ); + } - kbd_write_command_w(KBD_CCMD_MOUSE_ENABLE); /* Enable the - auxiliary port on - controller. */ - aux_write_ack(AUX_ENABLE_DEV); /* Enable aux device */ - kbd_write_cmd(AUX_INTS_ON); /* Enable controller ints */ - return 0; + kbd_write_command_w(KBD_CCMD_MOUSE_ENABLE); /* Enable the auxiliary port on + controller. */ + aux_write_ack(AUX_ENABLE_DEV); /* Enable aux device */ + kbd_write_cmd(AUX_INTS_ON); /* Enable controller ints */ + return 0; } /* -- cgit v1.2.3