]> git.ipfire.org Git - network.git/commitdiff
ports: Do not expect to come back after creating links
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 4 Jun 2023 17:05:06 +0000 (17:05 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 4 Jun 2023 17:05:06 +0000 (17:05 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/networkd/port.c

index 061e13c73ccf789b511f79421b2abdcdd35336de..c87ed599db74c3a74af34c1fb8934f3adb6b0fb7 100644 (file)
@@ -566,11 +566,8 @@ int nw_port_reconfigure(nw_port* port) {
        }
 
        // If there is no link, we will try to create it
-       if (!port->link) {
-               r = nw_port_create_link(port);
-               if (r)
-                       return r;
-       }
+       if (!port->link)
+               return nw_port_create_link(port);
 
        // XXX TODO