42 lines
1.1 KiB
Diff
42 lines
1.1 KiB
Diff
From 20d569b57edf2f859aeb48d32bbb91801a45fb91 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/26] 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.14.4
|
|
|