diff options
author | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2022-10-07 17:55:03 +0200 |
---|---|---|
committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2022-11-14 17:50:44 +0100 |
commit | 07f4aa9dd245661414a2db0574bed9bc5736ccfd (patch) | |
tree | fa6ab14bfd770ec8d96a4f2a2fc2201af819ab7a /fs/ntfs3/inode.c | |
parent | fs/ntfs3: Change new sparse cluster processing (diff) | |
download | linux-07f4aa9dd245661414a2db0574bed9bc5736ccfd.tar.xz linux-07f4aa9dd245661414a2db0574bed9bc5736ccfd.zip |
fs/ntfs3: Fix wrong indentations
Also simplifying code.
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to '')
-rw-r--r-- | fs/ntfs3/inode.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/ntfs3/inode.c b/fs/ntfs3/inode.c index bf56e78de653..45a4ddc0bcdc 100644 --- a/fs/ntfs3/inode.c +++ b/fs/ntfs3/inode.c @@ -1818,11 +1818,12 @@ static int ntfs_translate_junction(const struct super_block *sb, /* Make translated path a relative path to mount point */ strcpy(translated, "./"); - ++link_path; /* Skip leading / */ + ++link_path; /* Skip leading / */ for (tl_len = sizeof("./") - 1; *link_path; ++link_path) { if (*link_path == '/') { if (PATH_MAX - tl_len < sizeof("../")) { - ntfs_err(sb, "Link path %s has too many components", + ntfs_err(sb, + "Link path %s has too many components", link_path); err = -EINVAL; goto out; @@ -1838,7 +1839,8 @@ static int ntfs_translate_junction(const struct super_block *sb, ++target_start; if (!*target_start) { - ntfs_err(sb, "Link target (%s) missing drive separator", target); + ntfs_err(sb, "Link target (%s) missing drive separator", + target); err = -EINVAL; goto out; } |