dhcp: drop unnecessary !!

Found by coccinelle.
This commit is contained in:
Yu Watanabe
2026-08-18 03:33:37 +09:00
parent 31eaee07c3
commit 05f790da8f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ int sd_dhcp_client_set_anonymize(sd_dhcp_client *client, int b) {
assert_return(client, -EINVAL);
assert_return(!sd_dhcp_client_is_running(client), -EBUSY);
client->anonymize = !!b;
client->anonymize = b;
return 0;
}
+1 -1
View File
@@ -126,7 +126,7 @@ int sd_dhcp_relay_set_remote_id(sd_dhcp_relay *relay, const struct iovec *iov) {
int sd_dhcp_relay_set_server_identifier_override(sd_dhcp_relay *relay, int b) {
assert_return(relay, -EINVAL);
relay->server_identifier_override = !!b;
relay->server_identifier_override = b;
return 0;
}