summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/include/rtems/libio_.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-02-02 15:25:25 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-02-04 14:03:49 +0100
commitec0f2df19b6581868678d5af5f87f6fff569d20d (patch)
treea901a8376dd16fa63d39765e9e8ed3b7ac3176bf /cpukit/libcsupport/include/rtems/libio_.h
parentFilesystem: Delete rtems_libio_last_iop (diff)
downloadrtems-ec0f2df19b6581868678d5af5f87f6fff569d20d.tar.bz2
Filesystem: Use rtems_libio_iop_to_descriptor()
Drop parameter check from previously unused rtems_libio_iop_to_descriptor().
Diffstat (limited to '')
-rw-r--r--cpukit/libcsupport/include/rtems/libio_.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libcsupport/include/rtems/libio_.h b/cpukit/libcsupport/include/rtems/libio_.h
index d021c1b7ca..1300d39b41 100644
--- a/cpukit/libcsupport/include/rtems/libio_.h
+++ b/cpukit/libcsupport/include/rtems/libio_.h
@@ -107,7 +107,7 @@ extern rtems_filesystem_global_location_t rtems_filesystem_global_location_null;
*/
#define rtems_libio_iop_to_descriptor(_iop) \
- ((!(_iop)) ? -1 : (_iop - rtems_libio_iops))
+ ((_iop) - &rtems_libio_iops[0])
/*
* rtems_libio_check_is_open