Blame SOURCES/0056-fs-ntfs3-Place-Comparisons-constant-right-side-of-th.patch
|
Kmods SIG |
8b815c |
From 4ca7fe57f21a25afc4a651db5145bfe090c6248f Mon Sep 17 00:00:00 2001
|
|
Kmods SIG |
8b815c |
From: Kari Argillander <kari.argillander@gmail.com>
|
|
Kmods SIG |
8b815c |
Date: Tue, 7 Sep 2021 11:34:39 +0300
|
|
Kmods SIG |
8b815c |
Subject: [Backport 4ca7fe57f21a] src: Place Comparisons constant right
|
|
Kmods SIG |
8b815c |
side of the test
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
For better code readability place constant always right side of the
|
|
Kmods SIG |
8b815c |
test. This will also address checkpatch warning.
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
Signed-off-by: Kari Argillander <kari.argillander@gmail.com>
|
|
Kmods SIG |
8b815c |
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
|
|
Kmods SIG |
8b815c |
---
|
|
Kmods SIG |
8b815c |
src/frecord.c | 2 +-
|
|
Kmods SIG |
8b815c |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
diff --git a/src/frecord.c b/src/frecord.c
|
|
Kmods SIG |
8b815c |
index df41eae8f7e1bf94800e6cb2b85de28ef992d6ee..2f8af53da219c3486f2d5eef5d2f5a136c126b9e 100644
|
|
Kmods SIG |
8b815c |
--- a/src/frecord.c
|
|
Kmods SIG |
8b815c |
+++ b/src/frecord.c
|
|
Kmods SIG |
8b815c |
@@ -1603,7 +1603,7 @@ struct ATTR_FILE_NAME *ni_fname_type(struct ntfs_inode *ni, u8 name_type,
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
*le = NULL;
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
- if (FILE_NAME_POSIX == name_type)
|
|
Kmods SIG |
8b815c |
+ if (name_type == FILE_NAME_POSIX)
|
|
Kmods SIG |
8b815c |
return NULL;
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
/* Enumerate all names. */
|
|
Kmods SIG |
8b815c |
--
|
|
Kmods SIG |
8b815c |
2.31.1
|
|
Kmods SIG |
8b815c |
|