mirror of
https://github.com/openvswitch/ovs
synced 2025-10-23 14:57:06 +00:00
dpif-netlink-rtnl: Tidy up some code.
Simplify and refactor a couple of bits of code for improved readability. Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Eric Garver <e@erig.me>
This commit is contained in:
@@ -369,7 +369,7 @@ dpif_netlink_rtnl_port_create(struct netdev *netdev)
|
||||
err = dpif_netlink_rtnl_verify(tnl_cfg, type, name);
|
||||
if (!err) {
|
||||
return 0;
|
||||
} else {
|
||||
}
|
||||
err = dpif_netlink_rtnl_destroy(name);
|
||||
if (err) {
|
||||
static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
|
||||
@@ -380,7 +380,6 @@ dpif_netlink_rtnl_port_create(struct netdev *netdev)
|
||||
}
|
||||
err = dpif_netlink_rtnl_create(tnl_cfg, name, type, kind, flags);
|
||||
}
|
||||
}
|
||||
if (err) {
|
||||
return err;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user