diff --git a/src/platform/nm-fake-platform.c b/src/platform/nm-fake-platform.c index 4cef7bb53b..bbf68ce21c 100644 --- a/src/platform/nm-fake-platform.c +++ b/src/platform/nm-fake-platform.c @@ -83,8 +83,6 @@ type_to_type_name (NMLinkType type) switch (type) { case NM_LINK_TYPE_UNKNOWN: return "unknown"; - case NM_LINK_TYPE_GENERIC: - return "generic"; case NM_LINK_TYPE_LOOPBACK: return "loopback"; case NM_LINK_TYPE_ETHERNET: @@ -266,7 +264,6 @@ link_set_up (NMPlatform *platform, int ifindex) device->link.up = TRUE; switch (device->link.type) { - case NM_LINK_TYPE_GENERIC: case NM_LINK_TYPE_DUMMY: case NM_LINK_TYPE_VLAN: device->link.connected = TRUE; diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index 1ce538595f..da8cf44e09 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -319,7 +319,7 @@ link_extract_type (struct rtnl_link *rtnllink, const char **out_name) break; } - return_type (NM_LINK_TYPE_GENERIC, "generic"); + return_type (NM_LINK_TYPE_UNKNOWN, "unknown"); } else if (!strcmp (type, "ipoib")) return_type (NM_LINK_TYPE_INFINIBAND, "infiniband"); else if (!strcmp (type, "dummy")) diff --git a/src/platform/nm-platform.h b/src/platform/nm-platform.h index 270ab7891c..ee00256ebb 100644 --- a/src/platform/nm-platform.h +++ b/src/platform/nm-platform.h @@ -50,7 +50,6 @@ typedef enum { typedef enum { NM_LINK_TYPE_NONE, NM_LINK_TYPE_UNKNOWN, - NM_LINK_TYPE_GENERIC, /* Hardware types */ NM_LINK_TYPE_ETHERNET,