[PATCH] cpukit/dosfs: Cast away ignored return
Kinsey Moore
kinsey.moore at oarcorp.com
Tue Jan 2 22:02:29 UTC 2024
An error is already being reported. Checking the return value of this
function is not useful.
---
cpukit/libfs/src/dosfs/msdos_file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpukit/libfs/src/dosfs/msdos_file.c b/cpukit/libfs/src/dosfs/msdos_file.c
index d142968337..6728a960aa 100644
--- a/cpukit/libfs/src/dosfs/msdos_file.c
+++ b/cpukit/libfs/src/dosfs/msdos_file.c
@@ -179,7 +179,7 @@ msdos_file_ftruncate(rtems_libio_t *iop, off_t length)
length,
&new_length);
if (rc == RC_OK && length != new_length) {
- fat_file_truncate(&fs_info->fat, fat_fd, old_length);
+ (void)fat_file_truncate(&fs_info->fat, fat_fd, old_length);
errno = ENOSPC;
rc = -1;
}
--
2.39.2
More information about the devel
mailing list