Blob Blame History Raw
From 3dee8044adf134462fadb2b135cc965227f1fab9 Mon Sep 17 00:00:00 2001
From: Rob Crittenden <rcritten@redhat.com>
Date: Mon, 8 Oct 2018 12:48:41 -0400
Subject: [PATCH 18/25] clang: more Dead assignment

---
 src/submit-x.c | 5 ++---
 src/tdbus.c    | 1 -
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/submit-x.c b/src/submit-x.c
index fa81e9aa..abebc610 100644
--- a/src/submit-x.c
+++ b/src/submit-x.c
@@ -914,9 +914,8 @@ main(int argc, const char **argv)
 
 	/* Maybe we need a ccache. */
 	if (k5 || (kpname != NULL) || (ktname != NULL)) {
-		if (!make_ccache ||
-		    (cm_submit_x_make_ccache(ktname, kpname, NULL) == 0)) {
-			k5 = TRUE;
+		if (make_ccache) {
+		    cm_submit_x_make_ccache(ktname, kpname, NULL);
 		}
 	}
 
diff --git a/src/tdbus.c b/src/tdbus.c
index cb0a8ad7..a81b5349 100644
--- a/src/tdbus.c
+++ b/src/tdbus.c
@@ -757,7 +757,6 @@ cm_tdbus_setup_public(struct tevent_context *ec, enum cm_tdbus_type bus_type,
 	/* Connect to the right bus. */
 	bus_desc = NULL;
 	conn = NULL;
-	exit_on_disconnect = TRUE;
 	if (error != NULL) {
 		dbus_error_init(error);
 	}
-- 
2.21.0