Blame SOURCES/0027-exfat-remove-the-assignment-of-0-to-bool-variable.patch

Kmods SIG 50e2b3
From cdc06129a6cea0e4863fa2b34a0c132c6eb7278b Mon Sep 17 00:00:00 2001
Kmods SIG 50e2b3
From: Jason Yan <yanaijie@huawei.com>
Kmods SIG 50e2b3
Date: Thu, 16 Apr 2020 13:34:26 +0900
Kmods SIG 50e2b3
Subject: [Backport cdc06129a6ce] exfat: remove the assignment of 0 to bool
Kmods SIG 50e2b3
 variable
Kmods SIG 50e2b3
Kmods SIG 50e2b3
There is no need to init 'sync' in exfat_set_vol_flags().
Kmods SIG 50e2b3
This also fixes the following coccicheck warning:
Kmods SIG 50e2b3
Kmods SIG 50e2b3
src/super.c:104:6-10: WARNING: Assignment of 0/1 to bool variable
Kmods SIG 50e2b3
Kmods SIG 50e2b3
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Kmods SIG 50e2b3
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Kmods SIG 50e2b3
---
Kmods SIG 50e2b3
 src/super.c | 2 +-
Kmods SIG 50e2b3
 1 file changed, 1 insertion(+), 1 deletion(-)
Kmods SIG 50e2b3
Kmods SIG 50e2b3
diff --git a/src/super.c b/src/super.c
Kmods SIG 50e2b3
index f9aa1e5dc2381a4f9e4f9dc6f3d61dc525f1095c..c1f47f4071a80449d7fbbdf81d4f1d7079419d56 100644
Kmods SIG 50e2b3
--- a/src/super.c
Kmods SIG 50e2b3
+++ b/src/super.c
Kmods SIG 50e2b3
@@ -102,7 +102,7 @@ int exfat_set_vol_flags(struct super_block *sb, unsigned short new_flag)
Kmods SIG 50e2b3
 {
Kmods SIG 50e2b3
 	struct exfat_sb_info *sbi = EXFAT_SB(sb);
Kmods SIG 50e2b3
 	struct pbr64 *bpb = (struct pbr64 *)sbi->pbr_bh->b_data;
Kmods SIG 50e2b3
-	bool sync = 0;
Kmods SIG 50e2b3
+	bool sync;
Kmods SIG 50e2b3
 
Kmods SIG 50e2b3
 	/* flags are not changed */
Kmods SIG 50e2b3
 	if (sbi->vol_flag == new_flag)
Kmods SIG 50e2b3
-- 
Kmods SIG 50e2b3
2.31.1
Kmods SIG 50e2b3