diff options
Diffstat (limited to 'cpukit/libcsupport/src/mknod.c')
-rw-r--r-- | cpukit/libcsupport/src/mknod.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cpukit/libcsupport/src/mknod.c b/cpukit/libcsupport/src/mknod.c index 48444f8549..bd434e4efa 100644 --- a/cpukit/libcsupport/src/mknod.c +++ b/cpukit/libcsupport/src/mknod.c @@ -53,14 +53,13 @@ int mknod( return -1; if ( !temp_loc.ops->mknod ) { - if ( temp_loc.ops->freenod ) - (*temp_loc.ops->freenod)( &temp_loc ); + rtems_filesystem_freenode( &temp_loc ); set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->mknod)( name_start, mode, dev, &temp_loc ); - if ( temp_loc.ops->freenod ) - (*temp_loc.ops->freenod)( &temp_loc ); + + rtems_filesystem_freenode( &temp_loc ); return result; } |