dpif-netlink-rtnl: Tidy up some code.
Simplify and refactor a couple of bits of code for improved readability.
Acked-by: Eric Garver
@@ -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;
}
