fs/ntfs3: Place Comparisons constant right side of the test
authorKari Argillander <kari.argillander@gmail.com>
Tue, 7 Sep 2021 08:34:39 +0000 (11:34 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Thu, 16 Sep 2021 14:01:35 +0000 (17:01 +0300)
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>
fs/ntfs3/frecord.c

index df41eae8f7e1bf94800e6cb2b85de28ef992d6ee..2f8af53da219c3486f2d5eef5d2f5a136c126b9e 100644 (file)
@@ -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. */