aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-11-19 06:47:35 +0100
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2020-12-10 09:14:59 +0100
commit4a593dd0c5a1e1af40f47758f2aa1a4074a4ccdc (patch)
treecfe2fc889eea6c18014432d5f4f6b6f50696647b /fs
parent1e51c8d64a945946af72099dd469a3320ce02e7c (diff)
downloadu-boot-4a593dd0c5a1e1af40f47758f2aa1a4074a4ccdc.zip
u-boot-4a593dd0c5a1e1af40f47758f2aa1a4074a4ccdc.tar.gz
u-boot-4a593dd0c5a1e1af40f47758f2aa1a4074a4ccdc.tar.bz2
fs: fat: use constant DELETED_FLAG
When deleting a directory entry 0xe5 is written to name[0]. We have a constant for this value and should use it consistently. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'fs')
-rw-r--r--fs/fat/fat_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c
index 56ea285..c403d7d 100644
--- a/fs/fat/fat_write.c
+++ b/fs/fat/fat_write.c
@@ -1464,7 +1464,7 @@ static int delete_dentry(fat_itr *itr)
* - find and mark the "new" first invalid entry as name[0]=0x00
*/
memset(dentptr, 0, sizeof(*dentptr));
- dentptr->name[0] = 0xe5;
+ dentptr->name[0] = DELETED_FLAG;
if (flush_dir(itr)) {
printf("error: writing directory entry\n");