u-boot/fs
Heinrich Schuchardt 4c4006b694 fs: fat: usage basename in file_fat_write_at, fat_mkdir
This patch involves no functional change. It is just about code
readability.

Both in file_fat_write_at() and fat_mkdir() the incoming file or directory
path are split into two parts: the parent directory and the base name.

In file_fat_write_at() the value of the variable basename is assigned to
the filename parameter and afterwards the variable filename is used instead
of basename. It is more readable to use the variable basename and leave
filename unchanged.

In fat_mkdir() the base name variable is called directory. This is
confusing. Call it basename like in file_fat_write_at(). This allows to
rename parameter new_directory to directory in the implementation of
fat_mkdir() to match the function declaration.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
2021-02-03 09:52:51 +01:00
..
btrfs fs: btrfs: Select SHA256 in Kconfig 2021-01-29 10:36:49 -05:00
cbfs cbfs: Don't require the CBFS size with cbfs_init_mem() 2020-05-27 14:40:09 +08:00
cramfs common: Drop flash.h from common header 2020-05-18 14:53:28 -04:00
ext4 common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
fat fs: fat: usage basename in file_fat_write_at, fat_mkdir 2021-02-03 09:52:51 +01:00
jffs2 common: Drop flash.h from common header 2020-05-18 14:53:28 -04:00
reiserfs part: Drop disk_partition_t typedef 2020-05-18 17:33:33 -04:00
sandbox common: Drop part.h from common header 2020-05-18 17:33:33 -04:00
squashfs Fix squashfs failing to load sparse files 2021-01-20 14:01:44 -05:00
ubifs ubifs: do not decide upon uninitialized variable 2021-01-20 14:01:45 -05:00
yaffs2 common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
zfs common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
fs.c cmd: load, emit error message for invalid block device 2021-02-01 16:32:06 -05:00
fs_internal.c fs: convert error and debug messages to log 2020-09-06 21:21:41 +02:00
Kconfig fs/squashfs: new filesystem 2020-08-07 22:31:32 -04:00
Makefile fs/squashfs: new filesystem 2020-08-07 22:31:32 -04:00