summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-bus.c
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-07-17 21:12:39 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-07-17 21:12:39 +0200
commit962225baa862c2023790b3c7f140d22bac9e801f (patch)
treeb0897047e208171ec797bd5db5919bc33ae3253d /src/resolve/resolved-bus.c
parent99dfe1345caeb2cd107f69111aba8a9db18a0e6f (diff)
resolved: silence warnings
No need to write to r here since it will be overwritten as the first step in parse_fail.
Diffstat (limited to 'src/resolve/resolved-bus.c')
-rw-r--r--src/resolve/resolved-bus.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/resolve/resolved-bus.c b/src/resolve/resolved-bus.c
index c5e298d21e..f486fcdbcc 100644
--- a/src/resolve/resolved-bus.c
+++ b/src/resolve/resolved-bus.c
@@ -145,10 +145,8 @@ static void bus_method_resolve_hostname_complete(DnsQuery *q) {
}
n = dns_query_get_rrs(q, &rrs);
- if (n < 0) {
- r = n;
+ if (n < 0)
goto parse_fail;
- }
r = sd_bus_message_new_method_return(q->request, &reply);
if (r < 0)
@@ -337,10 +335,8 @@ static void bus_method_resolve_address_complete(DnsQuery *q) {
}
n = dns_query_get_rrs(q, &rrs);
- if (n < 0) {
- r = n;
+ if (n < 0)
goto parse_fail;
- }
r = sd_bus_message_new_method_return(q->request, &reply);
if (r < 0)