summaryrefslogtreecommitdiff
path: root/include/linux/linux_string.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2021-01-30 10:01:08 +0100
committerHeinrich Schuchardt <[email protected]>2021-02-03 09:52:51 +0100
commit4c4006b694c4188a6face1c70bf16d0c5d49a2e9 (patch)
tree453e323cab0866f09cce2c4aa04a8b1b97dc5f60 /include/linux/linux_string.h
parentfdcb93e1709ab1a2ebb562455621617c29e2099c (diff)
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 <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'include/linux/linux_string.h')
0 files changed, 0 insertions, 0 deletions