summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2014-09-03 13:15:24 +1000
committerChris Johns <chrisj@rtems.org>2014-09-03 13:15:24 +1000
commit5f9c208084dbde68cf56dbd2ab8c1421108aa45d (patch)
tree829f3005a6f4ad3f031faecd06353414caf70639 /cpukit
parentor1ksim/Makefile.am: Install shared tm27.h and regenerate preinstall.am (diff)
downloadrtems-5f9c208084dbde68cf56dbd2ab8c1421108aa45d.tar.bz2
libfs: Fix the warning in the RFS.
Return the first error if one or more happen when deleting an inode.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libfs/src/rfs/rtems-rfs-inode.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-inode.c b/cpukit/libfs/src/rfs/rtems-rfs-inode.c
index 718120f2ac..57439a03bd 100644
--- a/cpukit/libfs/src/rfs/rtems-rfs-inode.c
+++ b/cpukit/libfs/src/rfs/rtems-rfs-inode.c
@@ -352,12 +352,17 @@ rtems_rfs_inode_delete (rtems_rfs_file_system* fs,
rtems_rfs_buffer_mark_dirty (&handle->buffer);
/*
* Do the release here to avoid the ctime field being set on a
- * close. Also if there loads is greater then one then other loads
+ * close. Also if the loads is greater then one then other loads
* active. Forcing the loads count to 0.
*/
rc = rtems_rfs_buffer_handle_release (fs, &handle->buffer);
handle->loads = 0;
handle->node = NULL;
+ /*
+ * Return the first error and drop any that followed.
+ */
+ if (rrc > 0)
+ rc = rrc;
}
}
return rc;