diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-06-08 08:30:04 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-06-08 08:30:04 +0000 |
commit | 78f4d6d72ef51e9bdd33e2ed258fb6af5701153e (patch) | |
tree | 78eb811bad5ea57d3ba3036a9acd020153f758dd /cpukit/libfs/src/devfs | |
parent | 2010-06-07 Bharath Suri <bharath.s.jois@gmail.com> (diff) | |
download | rtems-78f4d6d72ef51e9bdd33e2ed258fb6af5701153e.tar.bz2 |
2010-06-08 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libfs/src/devfs/devclose.c, libfs/src/devfs/devopen.c,
libfs/src/imfs/deviceerrno.c, libfs/src/imfs/deviceio.c,
libfs/src/rfs/rtems-rfs-rtems-dev.c: Changed rtems_deviceio_errno() to
cope with a status code of RTEMS_SUCCESSFUL. Removed dependency on
association framework.
Diffstat (limited to 'cpukit/libfs/src/devfs')
-rw-r--r-- | cpukit/libfs/src/devfs/devclose.c | 6 | ||||
-rw-r--r-- | cpukit/libfs/src/devfs/devopen.c | 4 |
2 files changed, 3 insertions, 7 deletions
diff --git a/cpukit/libfs/src/devfs/devclose.c b/cpukit/libfs/src/devfs/devclose.c index 66a89b98e7..eaaf164c84 100644 --- a/cpukit/libfs/src/devfs/devclose.c +++ b/cpukit/libfs/src/devfs/devclose.c @@ -34,10 +34,8 @@ int devFS_close( np->minor, (void *) &args ); - if ( status ) { - return rtems_deviceio_errno(status); - } - return 0; + + return rtems_deviceio_errno(status); } diff --git a/cpukit/libfs/src/devfs/devopen.c b/cpukit/libfs/src/devfs/devopen.c index e1dcf64957..f06aa8939b 100644 --- a/cpukit/libfs/src/devfs/devopen.c +++ b/cpukit/libfs/src/devfs/devopen.c @@ -37,8 +37,6 @@ int devFS_open( np->minor, (void *) &args ); - if ( status ) - return rtems_deviceio_errno(status); - return 0; + return rtems_deviceio_errno(status); } |