[rtems commit] cpukit/dosfs: Cast away ignored return
Joel Sherrill
joel at rtems.org
Fri Jan 5 14:29:32 UTC 2024
Module: rtems
Branch: master
Commit: e6fce3cd3db3a322a7b7d457628635044ef92e06
Changeset: http://git.rtems.org/rtems/commit/?id=e6fce3cd3db3a322a7b7d457628635044ef92e06
Author: Kinsey Moore <kinsey.moore at oarcorp.com>
Date: Tue Jan 2 12:58:21 2024 -0600
cpukit/dosfs: Cast away ignored return
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..fd14f5084d 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;
}
More information about the vc
mailing list