From 4ca7fe57f21a25afc4a651db5145bfe090c6248f Mon Sep 17 00:00:00 2001
From: Kari Argillander <kari.argillander@gmail.com>
Date: Tue, 7 Sep 2021 11:34:39 +0300
Subject: [Backport 4ca7fe57f21a] src: 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>
---
src/frecord.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/frecord.c b/src/frecord.c
index df41eae8f7e1bf94800e6cb2b85de28ef992d6ee..2f8af53da219c3486f2d5eef5d2f5a136c126b9e 100644
--- a/src/frecord.c
+++ b/src/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. */
--
2.31.1