tree-wide: some coccinelle fixes

This commit is contained in:
Lennart Poettering
2022-02-16 11:50:48 +01:00
parent 96ca229517
commit 803e12f36b
2 changed files with 5 additions and 8 deletions

View File

@@ -183,9 +183,8 @@ int request_process_traffic_control(Request *req) {
tc = ASSERT_PTR(req->traffic_control);
r = traffic_control_is_ready_to_configure(link, tc);
if (r <= 0) {
if (r <= 0)
return r;
}
r = traffic_control_configure(link, tc);
if (r < 0)

View File

@@ -221,13 +221,11 @@ static void test_dns_stream(bool tls) {
log_info("test-resolved-stream: Started %s test", tls ? "TLS" : "TCP");
#if ENABLE_DNS_OVER_TLS
if (tls) {
/* For TLS mode, use DNS_OVER_TLS_OPPORTUNISTIC instead of
* DNS_OVER_TLS_YES, just to make certificate validation more
* lenient, allowing us to use self-signed certificates.
* We never downgrade, everything we test always goes over TLS */
if (tls)
/* For TLS mode, use DNS_OVER_TLS_OPPORTUNISTIC instead of DNS_OVER_TLS_YES, just to make
* certificate validation more lenient, allowing us to use self-signed certificates. We
* never downgrade, everything we test always goes over TLS */
manager.dns_over_tls_mode = DNS_OVER_TLS_OPPORTUNISTIC;
}
#endif
assert_se(sd_event_new(&event) >= 0);