Blame SOURCES/0013-checkpolicy-drop-redundant-cast-to-the-same-type.patch

83845a
From 4e3d0990c6be73419df3c32b7de98c992797e3ef Mon Sep 17 00:00:00 2001
83845a
From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= <cgzones@googlemail.com>
83845a
Date: Tue, 6 Jul 2021 19:54:30 +0200
83845a
Subject: [PATCH] checkpolicy: drop redundant cast to the same type
83845a
MIME-Version: 1.0
83845a
Content-Type: text/plain; charset=UTF-8
83845a
Content-Transfer-Encoding: 8bit
83845a
83845a
Found by clang-tidy.
83845a
83845a
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
83845a
---
83845a
 checkpolicy/policy_define.c | 2 +-
83845a
 1 file changed, 1 insertion(+), 1 deletion(-)
83845a
83845a
diff --git a/checkpolicy/policy_define.c b/checkpolicy/policy_define.c
83845a
index 887857851504..efe3a1a26315 100644
83845a
--- a/checkpolicy/policy_define.c
83845a
+++ b/checkpolicy/policy_define.c
83845a
@@ -1796,7 +1796,7 @@ int define_bool_tunable(int is_tunable)
83845a
 		return -1;
83845a
 	}
83845a
 
83845a
-	datum->state = (int)(bool_value[0] == 'T') ? 1 : 0;
83845a
+	datum->state = (bool_value[0] == 'T') ? 1 : 0;
83845a
 	free(bool_value);
83845a
 	return 0;
83845a
       cleanup:
83845a
-- 
83845a
2.32.0
83845a