diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2024-03-27 09:09:27 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-04-10 09:34:53 -0600 |
commit | 4ed2b1af4599a36584e9195b50bbfcdf06d0f613 (patch) | |
tree | 90757da247339a76d765819a9aa4e13bba26c537 /fs | |
parent | d2986567b27dae764b19886bcda1d24b7c41d075 (diff) | |
download | u-boot-4ed2b1af4599a36584e9195b50bbfcdf06d0f613.tar.gz u-boot-4ed2b1af4599a36584e9195b50bbfcdf06d0f613.tar.bz2 u-boot-4ed2b1af4599a36584e9195b50bbfcdf06d0f613.zip |
fs: ext4: all file paths are absolute
U-Boot only knows absolute file paths. It is inconsistent to require that
saving to an ext4 file system should use a leading '/' while reading does
not. Remove the superfluous check.
Reported-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Tested-by: Patrice Chotard <patrice.chotard@foss.st.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext4/ext4_common.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c index 365c5147c4..2ff0dca249 100644 --- a/fs/ext4/ext4_common.c +++ b/fs/ext4/ext4_common.c @@ -765,11 +765,6 @@ int ext4fs_get_parent_inode_num(const char *dirname, char *dname, int flags) struct ext2_inode *first_inode = NULL; struct ext2_inode temp_inode; - if (*dirname != '/') { - printf("Please supply Absolute path\n"); - return -1; - } - /* TODO: input validation make equivalent to linux */ depth_dirname = zalloc(strlen(dirname) + 1); if (!depth_dirname) |