mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
network/brvlan: convert condtion to assertion
The condition should be always true.
This commit is contained in:
parent
0b8d501c27
commit
f0f93d9ce4
|
@ -23,8 +23,8 @@ static bool is_bit_set(unsigned nr, const uint32_t *addr) {
|
|||
}
|
||||
|
||||
static void set_bit(unsigned nr, uint32_t *addr) {
|
||||
if (nr < BRIDGE_VLAN_BITMAP_MAX)
|
||||
addr[nr / 32] |= (UINT32_C(1) << (nr % 32));
|
||||
assert(nr < BRIDGE_VLAN_BITMAP_MAX);
|
||||
addr[nr / 32] |= (UINT32_C(1) << (nr % 32));
|
||||
}
|
||||
|
||||
static int add_single(sd_netlink_message *m, uint16_t id, bool untagged, bool is_pvid) {
|
||||
|
|
Loading…
Reference in a new issue