Blame SOURCES/0018-clang-more-Dead-assignment.patch
|
|
9890c6 |
From 3dee8044adf134462fadb2b135cc965227f1fab9 Mon Sep 17 00:00:00 2001
|
|
|
d4b2f2 |
From: Rob Crittenden <rcritten@redhat.com>
|
|
|
d4b2f2 |
Date: Mon, 8 Oct 2018 12:48:41 -0400
|
|
|
9890c6 |
Subject: [PATCH 18/25] clang: more Dead assignment
|
|
|
d4b2f2 |
|
|
|
d4b2f2 |
---
|
|
|
d4b2f2 |
src/submit-x.c | 5 ++---
|
|
|
d4b2f2 |
src/tdbus.c | 1 -
|
|
|
d4b2f2 |
2 files changed, 2 insertions(+), 4 deletions(-)
|
|
|
d4b2f2 |
|
|
|
d4b2f2 |
diff --git a/src/submit-x.c b/src/submit-x.c
|
|
|
d4b2f2 |
index fa81e9aa..abebc610 100644
|
|
|
d4b2f2 |
--- a/src/submit-x.c
|
|
|
d4b2f2 |
+++ b/src/submit-x.c
|
|
|
d4b2f2 |
@@ -914,9 +914,8 @@ main(int argc, const char **argv)
|
|
|
d4b2f2 |
|
|
|
d4b2f2 |
/* Maybe we need a ccache. */
|
|
|
d4b2f2 |
if (k5 || (kpname != NULL) || (ktname != NULL)) {
|
|
|
d4b2f2 |
- if (!make_ccache ||
|
|
|
d4b2f2 |
- (cm_submit_x_make_ccache(ktname, kpname, NULL) == 0)) {
|
|
|
d4b2f2 |
- k5 = TRUE;
|
|
|
d4b2f2 |
+ if (make_ccache) {
|
|
|
d4b2f2 |
+ cm_submit_x_make_ccache(ktname, kpname, NULL);
|
|
|
d4b2f2 |
}
|
|
|
d4b2f2 |
}
|
|
|
d4b2f2 |
|
|
|
d4b2f2 |
diff --git a/src/tdbus.c b/src/tdbus.c
|
|
|
d4b2f2 |
index cb0a8ad7..a81b5349 100644
|
|
|
d4b2f2 |
--- a/src/tdbus.c
|
|
|
d4b2f2 |
+++ b/src/tdbus.c
|
|
|
d4b2f2 |
@@ -757,7 +757,6 @@ cm_tdbus_setup_public(struct tevent_context *ec, enum cm_tdbus_type bus_type,
|
|
|
d4b2f2 |
/* Connect to the right bus. */
|
|
|
d4b2f2 |
bus_desc = NULL;
|
|
|
d4b2f2 |
conn = NULL;
|
|
|
d4b2f2 |
- exit_on_disconnect = TRUE;
|
|
|
d4b2f2 |
if (error != NULL) {
|
|
|
d4b2f2 |
dbus_error_init(error);
|
|
|
d4b2f2 |
}
|
|
|
d4b2f2 |
--
|
|
|
9890c6 |
2.21.0
|
|
|
d4b2f2 |
|