[rtems commit] cpukit/libblock: Ignore return value on error path

Joel Sherrill joel at rtems.org
Mon Jan 29 17:08:23 UTC 2024


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

Author:    Kinsey Moore <kinsey.moore at oarcorp.com>
Date:      Mon Jan 22 15:53:27 2024 -0600

cpukit/libblock: Ignore return value on error path

---

 cpukit/libblock/src/media.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/libblock/src/media.c b/cpukit/libblock/src/media.c
index 482cdc4fb0..1ab7dd2034 100644
--- a/cpukit/libblock/src/media.c
+++ b/cpukit/libblock/src/media.c
@@ -519,7 +519,7 @@ static rtems_status_code mount_worker(
       &mount_options
     );
     if (rv != 0) {
-      rmdir(mount_path);
+      (void) rmdir(mount_path);
       free(mount_path);
       (*mount_options.converter->handler->destroy)(mount_options.converter);
 



More information about the vc mailing list