From: Kari Argillander Date: Tue, 7 Sep 2021 08:34:39 +0000 (+0300) Subject: fs/ntfs3: Place Comparisons constant right side of the test X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4ca7fe57f21a25afc4a651db5145bfe090c6248f;p=linux.git 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 Signed-off-by: Konstantin Komarov --- diff --git a/fs/ntfs3/frecord.c b/fs/ntfs3/frecord.c index df41eae8f7e1b..2f8af53da219c 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. */