mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 17:51:22 +03:00
parent
fb721f084c
commit
412ac780ac
@ -53,7 +53,7 @@ static int append_vlan_info_data(Link *const link, sd_netlink_message *req, uint
|
|||||||
assert(br_vid_bitmap);
|
assert(br_vid_bitmap);
|
||||||
assert(br_untagged_bitmap);
|
assert(br_untagged_bitmap);
|
||||||
|
|
||||||
i = cnt = -1;
|
cnt = 0;
|
||||||
|
|
||||||
begin = end = UINT16_MAX;
|
begin = end = UINT16_MAX;
|
||||||
for (k = 0; k < BRIDGE_VLAN_BITMAP_LEN; k++) {
|
for (k = 0; k < BRIDGE_VLAN_BITMAP_LEN; k++) {
|
||||||
@ -129,9 +129,8 @@ static int append_vlan_info_data(Link *const link, sd_netlink_message *req, uint
|
|||||||
i = j;
|
i = j;
|
||||||
} while (!done);
|
} while (!done);
|
||||||
}
|
}
|
||||||
if (!cnt)
|
|
||||||
return -EINVAL;
|
|
||||||
|
|
||||||
|
assert(cnt > 0);
|
||||||
return cnt;
|
return cnt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user