From 81cd377d99d03e0781a781af76fc73d9502051de Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 28 Aug 2007 14:05:20 +0000 Subject: 2007-08-28 Joel Sherrill * ChangeLog, sapi/src/io.c: Revert change accidentally committed to io.c. --- cpukit/ChangeLog | 7 ++++++- cpukit/sapi/src/io.c | 11 +++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index a8f5e53a1d..78d035b0ae 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,7 +1,12 @@ +2007-08-28 Joel Sherrill + + * ChangeLog, sapi/src/io.c: Revert change accidentally committed to + io.c. + 2007-08-28 Joel Sherrill PR 1256/networking - * ftpd/ftpd.c, sapi/src/io.c: Fix unaligned access. + * ftpd/ftpd.c: Fix unaligned access. 2007-07-31 Joel Sherrill diff --git a/cpukit/sapi/src/io.c b/cpukit/sapi/src/io.c index c989711535..823427fd47 100644 --- a/cpukit/sapi/src/io.c +++ b/cpukit/sapi/src/io.c @@ -136,16 +136,15 @@ rtems_status_code rtems_io_register_driver( if ( major == 0 ) { - bool found = FALSE; for ( major = _IO_Number_of_drivers - 1 ; major ; major-- ) if ( _IO_Driver_address_table[major].initialization_entry == 0 && - _IO_Driver_address_table[major].open_entry == 0 ) { - found = FALSE; + _IO_Driver_address_table[major].open_entry == 0 ) break; - } - if ( !found ) - return RTEMS_TOO_MANY; + if (( major == 0 ) && + ( _IO_Driver_address_table[major].initialization_entry == 0 && + _IO_Driver_address_table[major].open_entry == 0 )) + return RTEMS_TOO_MANY; } if ( _IO_Driver_address_table[major].initialization_entry == 0 && -- cgit v1.2.3