summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/devfs/devread.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libfs/src/devfs/devread.c')
-rw-r--r--cpukit/libfs/src/devfs/devread.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cpukit/libfs/src/devfs/devread.c b/cpukit/libfs/src/devfs/devread.c
index 10f74e81c9..31d3f35db9 100644
--- a/cpukit/libfs/src/devfs/devread.c
+++ b/cpukit/libfs/src/devfs/devread.c
@@ -23,9 +23,7 @@ ssize_t devFS_read(
{
rtems_libio_rw_args_t args;
rtems_status_code status;
- rtems_device_name_t *np;
-
- np = (rtems_device_name_t *)iop->pathinfo.node_access;
+ const devFS_node *np = iop->pathinfo.node_access;
args.iop = iop;
args.offset = iop->offset;