projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2c5a92
)
fs: fat: use ATTR_ARCH instead of anonymous 0x20
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sun, 22 Nov 2020 10:13:33 +0000
(11:13 +0100)
committer
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sun, 29 Nov 2020 04:18:16 +0000
(
05:18
+0100)
Using constants instead of anonymous numbers increases code readability.
Fixes: 704df6aa0a28 ("fs: fat: refactor write interface for a file offset")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
fs/fat/fat_write.c
patch
|
blob
|
history
diff --git
a/fs/fat/fat_write.c
b/fs/fat/fat_write.c
index fc932df953c72ed75da5a3dc1cca54398a5b7928..7afc8388b236f765b99ca3191b56b763965f28e6 100644
(file)
--- a/
fs/fat/fat_write.c
+++ b/
fs/fat/fat_write.c
@@
-1191,7
+1191,8
@@
int file_fat_write_at(const char *filename, loff_t pos, void *buffer,
}
/* Set short name entry */
- fill_dentry(itr->fsdata, itr->dent, filename, 0, size, 0x20);
+ fill_dentry(itr->fsdata, itr->dent, filename, 0, size,
+ ATTR_ARCH);
retdent = itr->dent;
}