[rtems commit] cpukit/libblock: Ignore sync status prior to purge

Joel Sherrill joel at rtems.org
Wed Jan 31 20:03:40 UTC 2024


Module:    rtems
Branch:    master
Commit:    b03aba3023b71636ee27433a4c0577bcc78e06cf
Changeset: http://git.rtems.org/rtems/commit/?id=b03aba3023b71636ee27433a4c0577bcc78e06cf

Author:    Kinsey Moore <kinsey.moore at oarcorp.com>
Date:      Wed Jan 24 11:57:36 2024 -0600

cpukit/libblock: Ignore sync status prior to purge

---

 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) {



More information about the vc mailing list