diff options
author | Kinsey Moore <kinsey.moore@oarcorp.com> | 2024-01-08 13:52:17 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2024-01-16 10:57:44 -0600 |
commit | 63833908863567dfa6d5f9d666f34f94a702fe14 (patch) | |
tree | 06560d79a43ef1b398dc636571d1fde1807df845 /cpukit/libfs/src/dosfs/msdos_misc.c | |
parent | flashdev.c: return error if both buffers are NULL (diff) | |
download | rtems-63833908863567dfa6d5f9d666f34f94a702fe14.tar.bz2 |
cpukit: Remove or use unused variable assignments
Diffstat (limited to 'cpukit/libfs/src/dosfs/msdos_misc.c')
-rw-r--r-- | cpukit/libfs/src/dosfs/msdos_misc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/libfs/src/dosfs/msdos_misc.c b/cpukit/libfs/src/dosfs/msdos_misc.c index 8bde792ae5..c40988b98f 100644 --- a/cpukit/libfs/src/dosfs/msdos_misc.c +++ b/cpukit/libfs/src/dosfs/msdos_misc.c @@ -288,7 +288,6 @@ msdos_long_to_short(rtems_dosfs_convert_control *converter, &codepage_name_len); if (eno == EINVAL) { - eno = 0; type = MSDOS_NAME_LONG; } else @@ -1747,6 +1746,8 @@ msdos_add_file ( /* Get position of short file name entry */ ret = msdos_get_pos(fs_info, fat_fd, bts2rd, short_file_offset, &dir_pos->sname); + if (ret != RC_OK) + return ret; /* * Handle the entry writes. |