diff options
Diffstat (limited to 'net/hub.c')
-rw-r--r-- | net/hub.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -286,12 +286,9 @@ int net_init_hubport(const NetClientOptions *opts, const char *name, const NetdevHubPortOptions *hubport; assert(opts->kind == NET_CLIENT_OPTIONS_KIND_HUBPORT); + assert(!peer); hubport = opts->hubport; - if (peer) { - return -EINVAL; - } - net_hub_add_port(hubport->hubid, name); return 0; } |