diff options
author | Kari Argillander <kari.argillander@gmail.com> | 2021-09-07 11:34:39 +0300 |
---|---|---|
committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2021-09-16 17:01:35 +0300 |
commit | 4ca7fe57f21a25afc4a651db5145bfe090c6248f (patch) | |
tree | d13f76bb9128329e040f534221b23f50b7d54f22 /fs/ntfs3 | |
parent | 7d95995ab4de07ee642c925aa6dbf6d07069a751 (diff) | |
download | linux-4ca7fe57f21a25afc4a651db5145bfe090c6248f.tar.xz |
fs/ntfs3: Place Comparisons constant right side of the test
For better code readability place constant always right side of the
test. This will also address checkpatch warning.
Signed-off-by: Kari Argillander <kari.argillander@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/ntfs3')
-rw-r--r-- | fs/ntfs3/frecord.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs3/frecord.c b/fs/ntfs3/frecord.c index df41eae8f7e1..2f8af53da219 100644 --- a/fs/ntfs3/frecord.c +++ b/fs/ntfs3/frecord.c @@ -1603,7 +1603,7 @@ struct ATTR_FILE_NAME *ni_fname_type(struct ntfs_inode *ni, u8 name_type, *le = NULL; - if (FILE_NAME_POSIX == name_type) + if (name_type == FILE_NAME_POSIX) return NULL; /* Enumerate all names. */ |