]> git.ipfire.org Git - people/ms/network.git/commitdiff
ports: Drop UNKNOWN type
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 Jun 2023 16:26:13 +0000 (16:26 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 Jun 2023 16:26:13 +0000 (16:26 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/networkd/port.c
src/networkd/port.h

index c4d6ffe38034849a69cdd411873410002466f5ba..c14d439ec2ef79636d982142e525ffb3221e14a2 100644 (file)
@@ -261,9 +261,6 @@ int nw_port_destroy(nw_port* port) {
        if (r)
                return r;
 
-       // Reset type
-       port->type = NW_PORT_UNKNOWN;
-
        return 0;
 }
 
@@ -282,7 +279,6 @@ int __nw_port_drop_port(nw_daemon* daemon, nw_port* port, void* data) {
 
                case NW_PORT_BONDING:
                case NW_PORT_DUMMY:
-               case NW_PORT_UNKNOWN:
                        break;
        }
 
index 15b8bc17e834a99289f2ab2f6669d49e26f469a2..b96b13ebe7b16cadcc288b7faf2dfa4e47a6c95f 100644 (file)
@@ -34,7 +34,6 @@
 typedef struct nw_port nw_port;
 
 typedef enum nw_port_type_id {
-       NW_PORT_UNKNOWN = 0,
        NW_PORT_BONDING,
        NW_PORT_DUMMY,
        NW_PORT_VLAN,