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

Kinsey Moore kinsey.moore at oarcorp.com
Mon Jan 22 21:53:52 UTC 2024


---
 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);
 
-- 
2.39.2



More information about the devel mailing list