summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKinsey Moore <kinsey.moore@oarcorp.com>2024-01-02 12:58:21 -0600
committerJoel Sherrill <joel@rtems.org>2024-01-05 08:29:25 -0600
commite6fce3cd3db3a322a7b7d457628635044ef92e06 (patch)
tree12e4a4766bf610b605796b88ee9135ff8f7282c0
parenttestsuites/fstests: Add JFFS2 NAND support tests (diff)
downloadrtems-e6fce3cd3db3a322a7b7d457628635044ef92e06.tar.bz2
cpukit/dosfs: Cast away ignored return
An error is already being reported. Checking the return value of this function is not useful.
-rw-r--r--cpukit/libfs/src/dosfs/msdos_file.c2
1 files changed, 1 insertions, 1 deletions
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;
}