tree-wide: use SET_FLAG in more places (#5892)
This commit is contained in:
committed by
Lennart Poettering
parent
f7bf1abef9
commit
ab8ee0f259
@@ -42,11 +42,7 @@ static int netdev_vlan_fill_message_create(NetDev *netdev, Link *link, sd_netlin
|
||||
|
||||
if (v->gvrp != -1) {
|
||||
flags.mask |= VLAN_FLAG_GVRP;
|
||||
|
||||
if (v->gvrp)
|
||||
flags.flags |= VLAN_FLAG_GVRP;
|
||||
else
|
||||
flags.flags &= ~VLAN_FLAG_GVRP;
|
||||
SET_FLAG(flags.flags, VLAN_FLAG_GVRP, v->gvrp);
|
||||
}
|
||||
|
||||
r = sd_netlink_message_append_data(req, IFLA_VLAN_FLAGS, &flags, sizeof(struct ifla_vlan_flags));
|
||||
|
||||
Reference in New Issue
Block a user