libfs: Fix the warning in the RFS.

Return the first error if one or more happen when deleting an inode.
This commit is contained in:
Chris Johns
2014-09-03 13:15:24 +10:00
parent 2617cd3e04
commit 5f9c208084
+6 -1
View File
@@ -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;