platform: remove unnecessary rtnl_link_set_type (change, "vlan")
The type is set by build_rtnl_link().
This commit is contained in:

committed by
Thomas Haller

parent
22a0136bcb
commit
48b8f57468
@@ -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);
|
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);
|
rtnl_link_vlan_set_ingress_map (change, from, to);
|
||||||
|
|
||||||
_LOGD ("link: change %d: vlan ingress map %d -> %d", ifindex, 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);
|
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);
|
rtnl_link_vlan_set_egress_map (change, from, to);
|
||||||
|
|
||||||
_LOGD ("link: change %d: vlan egress map %d -> %d", ifindex, from, to);
|
_LOGD ("link: change %d: vlan egress map %d -> %d", ifindex, from, to);
|
||||||
|
Reference in New Issue
Block a user