summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libcsupport/src/mknod.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/libcsupport/src/mknod.c')
-rw-r--r--c/src/exec/libcsupport/src/mknod.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/c/src/exec/libcsupport/src/mknod.c b/c/src/exec/libcsupport/src/mknod.c
index 48444f8549..bd434e4efa 100644
--- a/c/src/exec/libcsupport/src/mknod.c
+++ b/c/src/exec/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;
}