diff mbox series

[16/18] fs: fat: use constant DELETED_FLAG

Message ID 20201129020216.4865-17-xypron.glpk@gmx.de
State Accepted, archived
Commit 4a593dd0c5a1e1af40f47758f2aa1a4074a4ccdc
Delegated to: Tom Rini
Headers show
Series fs: fat: fix long name support | expand

Commit Message

Heinrich Schuchardt Nov. 29, 2020, 2:02 a.m. UTC
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>
---
 fs/fat/fat_write.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.29.2
diff mbox series

Patch

diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c
index 56ea28553b..c403d7d5c6 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");