1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-28 17:47:05 +03:00

network: drop unnecessary initializations

This commit is contained in:
Yu Watanabe 2019-05-10 23:31:20 +09:00
parent 4799f19e30
commit 86e2be7bc3
4 changed files with 4 additions and 4 deletions

View File

@ -401,7 +401,7 @@ static void resolve_endpoints(NetDev *netdev) {
WireguardPeer *peer;
Wireguard *w;
Iterator i;
int r = 0;
int r;
assert(netdev);
w = WIREGUARD(netdev);

View File

@ -542,7 +542,7 @@ static int dhcp_server_is_black_listed(Link *link, sd_dhcp_client *client) {
static int dhcp4_handler(sd_dhcp_client *client, int event, void *userdata) {
Link *link = userdata;
int r = 0;
int r;
assert(link);
assert(link->network);

View File

@ -1333,7 +1333,7 @@ static int link_request_set_addresses(Link *link) {
}
static int link_set_bridge_vlan(Link *link) {
int r = 0;
int r;
r = br_vlan_configure(link, link->network->pvid, link->network->br_vid_bitmap, link->network->br_untagged_bitmap);
if (r < 0)

View File

@ -559,7 +559,7 @@ static int ndisc_router_process_options(Link *link, sd_ndisc_router *rt) {
static int ndisc_router_handler(Link *link, sd_ndisc_router *rt) {
uint64_t flags;
int r = 0;
int r;
assert(link);
assert(link->network);