cpukit/libblock: Ignore sync status prior to purge

This commit is contained in:
Kinsey Moore
2024-01-24 11:57:36 -06:00
committed by Joel Sherrill
parent 0d5319d49a
commit b03aba3023
2 changed files with 2 additions and 2 deletions

View File

@@ -2901,7 +2901,7 @@ rtems_bdbuf_set_block_size (rtems_disk_device *dd,
* device later.
*/
if (sync)
rtems_bdbuf_syncdev (dd);
(void) rtems_bdbuf_syncdev (dd);
rtems_bdbuf_lock_cache ();

View File

@@ -269,7 +269,7 @@ static void rtems_blkdev_imfs_destroy(IMFS_jnode_t *node)
rtems_blkdev_imfs_context *ctx = IMFS_generic_get_context_by_node(node);
rtems_disk_device *dd = &ctx->dd;
rtems_bdbuf_syncdev(dd);
(void) rtems_bdbuf_syncdev(dd);
rtems_bdbuf_purge_dev(dd);
if (ctx->fd >= 0) {