diff options
Diffstat (limited to 'net/hub.c')
| -rw-r--r-- | net/hub.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/hub.c b/net/hub.c index 2b60ab9a60..261f8ccc3f 100644 --- a/net/hub.c +++ b/net/hub.c @@ -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; } |