1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 06:25:37 +03:00

sd-dhcp6-client: drop unnecessary assignment

This commit is contained in:
Yu Watanabe 2022-02-07 01:59:27 +09:00
parent 8ef959cd09
commit 30b31359b0

View File

@ -1321,7 +1321,6 @@ static int client_receive_message(
}
static int client_set_state(sd_dhcp6_client *client, DHCP6State state) {
usec_t time_now;
int r;
assert_return(client, -EINVAL);
@ -1353,13 +1352,12 @@ static int client_set_state(sd_dhcp6_client *client, DHCP6State state) {
client->retransmit_time = 0;
client->retransmit_count = 0;
r = sd_event_now(client->event, clock_boottime_or_monotonic(), &time_now);
if (r < 0)
goto error;
client->state = state;
client->transaction_id = random_u32() & htobe32(0x00ffffff);
client->transaction_start = time_now;
r = sd_event_now(client->event, clock_boottime_or_monotonic(), &client->transaction_start);
if (r < 0)
goto error;
r = event_reset_time(client->event, &client->timeout_resend,
clock_boottime_or_monotonic(),