From ec0f2df19b6581868678d5af5f87f6fff569d20d Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 2 Feb 2015 15:25:25 +0100 Subject: Filesystem: Use rtems_libio_iop_to_descriptor() Drop parameter check from previously unused rtems_libio_iop_to_descriptor(). --- cpukit/libcsupport/include/rtems/libio_.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/libcsupport/include/rtems/libio_.h') 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 -- cgit v1.2.3