From 95308caf587391f267de052260991e687db68a36 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Sat, 31 Jan 2015 21:25:57 +0100 Subject: IMFS: Use rtems_filesystem_make_dev_t_from_pointer --- cpukit/libfs/src/imfs/imfs_stat.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'cpukit/libfs/src/imfs/imfs_stat.c') diff --git a/cpukit/libfs/src/imfs/imfs_stat.c b/cpukit/libfs/src/imfs/imfs_stat.c index 1499d2b83c..3d07fe8092 100644 --- a/cpukit/libfs/src/imfs/imfs_stat.c +++ b/cpukit/libfs/src/imfs/imfs_stat.c @@ -28,16 +28,10 @@ int IMFS_stat( struct stat *buf ) { - IMFS_fs_info_t *fs_info = loc->mt_entry->fs_info; + const IMFS_fs_info_t *fs_info = loc->mt_entry->fs_info; IMFS_jnode_t *the_jnode = loc->node_access; - /* - * The device number of the IMFS is the major number and the minor is the - * instance. - */ - buf->st_dev = - rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); - + buf->st_dev = rtems_filesystem_make_dev_t_from_pointer( fs_info ); buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; -- cgit v1.2.3