diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-11-22 11:13:33 +0100 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-11-29 05:18:16 +0100 |
commit | 1ec29aa30623fc8cc8f4b014497aa0d72af96720 (patch) | |
tree | 87d815c245fd197b6b4c7a05e2daedc821f39475 | |
parent | a2c5a92d4865cea53de8a9297a4f4d115e6ac3b6 (diff) | |
download | u-boot-1ec29aa30623fc8cc8f4b014497aa0d72af96720.zip u-boot-1ec29aa30623fc8cc8f4b014497aa0d72af96720.tar.gz u-boot-1ec29aa30623fc8cc8f4b014497aa0d72af96720.tar.bz2 |
fs: fat: use ATTR_ARCH instead of anonymous 0x20
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>
-rw-r--r-- | fs/fat/fat_write.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c index fc932df..7afc838 100644 --- 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; } |