[PATCH 6/7] dosfs: Simplify msdos_add_file()
Sebastian Huber
sebastian.huber at embedded-brains.de
Tue Mar 14 13:43:31 UTC 2017
Update #2929.
---
cpukit/libfs/src/dosfs/msdos_misc.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/cpukit/libfs/src/dosfs/msdos_misc.c b/cpukit/libfs/src/dosfs/msdos_misc.c
index 5c16f4a..d1d0181 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;
--
1.8.4.5
More information about the devel
mailing list