mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-09 23:40:33 +01:00
platform: remove unnecessary rtnl_link_set_type (change, "vlan")
The type is set by build_rtnl_link().
This commit is contained in:
parent
22a0136bcb
commit
48b8f57468
1 changed files with 0 additions and 2 deletions
|
|
@ -3263,7 +3263,6 @@ vlan_set_ingress_map (NMPlatform *platform, int ifindex, int from, int to)
|
|||
{
|
||||
auto_nl_object struct rtnl_link *change = (struct rtnl_link *) build_rtnl_link (ifindex, NULL, NM_LINK_TYPE_VLAN);
|
||||
|
||||
rtnl_link_set_type (change, "vlan");
|
||||
rtnl_link_vlan_set_ingress_map (change, from, to);
|
||||
|
||||
_LOGD ("link: change %d: vlan ingress map %d -> %d", ifindex, from, to);
|
||||
|
|
@ -3276,7 +3275,6 @@ vlan_set_egress_map (NMPlatform *platform, int ifindex, int from, int to)
|
|||
{
|
||||
auto_nl_object struct rtnl_link *change = (struct rtnl_link *) build_rtnl_link (ifindex, NULL, NM_LINK_TYPE_VLAN);
|
||||
|
||||
rtnl_link_set_type (change, "vlan");
|
||||
rtnl_link_vlan_set_egress_map (change, from, to);
|
||||
|
||||
_LOGD ("link: change %d: vlan egress map %d -> %d", ifindex, from, to);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue