summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-03-14 10:28:19 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-03-21 16:15:00 +0100
commit58e8131184c475eda92224fa403f03b306e4f745 (patch)
tree7b3df0920861f70750dd17cb116027568654fbe6 /cpukit
parent565b1a57b731c14847e60c6783237a0665cf859f (diff)
downloadrtems-58e8131184c475eda92224fa403f03b306e4f745.tar.bz2
dosfs: Simplify msdos_add_file()
Update #2929.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libfs/src/dosfs/msdos_misc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/cpukit/libfs/src/dosfs/msdos_misc.c b/cpukit/libfs/src/dosfs/msdos_misc.c
index da59668691..dd18274b0f 100644
--- a/cpukit/libfs/src/dosfs/msdos_misc.c
+++ b/cpukit/libfs/src/dosfs/msdos_misc.c
@@ -1650,8 +1650,8 @@ msdos_add_file (
const char *name_dir_entry,
fat_dir_pos_t *dir_pos,
const uint32_t dir_offset,
- const uint32_t empty_space_offset_param,
- const uint32_t empty_space_entry_param,
+ uint32_t empty_space_offset,
+ uint32_t empty_space_entry,
const uint32_t empty_space_count
)
@@ -1659,8 +1659,6 @@ msdos_add_file (
int ret = 0;
ssize_t bytes_written = 0;
uint8_t lfn_checksum = 0;
- uint32_t empty_space_offset = empty_space_offset_param;
- uint32_t empty_space_entry = empty_space_entry_param;
bool read_cluster = false;
int lfn_entry = 0;
fat_pos_t lfn_start;