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