[PATCH] cpukit/libblock: Ignore sync status prior to purge
Kinsey Moore
kinsey.moore at oarcorp.com
Wed Jan 24 17:58:16 UTC 2024
---
cpukit/libblock/src/bdbuf.c | 2 +-
cpukit/libblock/src/blkdev-imfs.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cpukit/libblock/src/bdbuf.c b/cpukit/libblock/src/bdbuf.c
index ee98ada85f..ee6f1d9347 100644
--- a/cpukit/libblock/src/bdbuf.c
+++ b/cpukit/libblock/src/bdbuf.c
@@ -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 ();
diff --git a/cpukit/libblock/src/blkdev-imfs.c b/cpukit/libblock/src/blkdev-imfs.c
index 67f7c98c9d..e562619d4d 100644
--- a/cpukit/libblock/src/blkdev-imfs.c
+++ b/cpukit/libblock/src/blkdev-imfs.c
@@ -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) {
--
2.39.2
More information about the devel
mailing list