diff options
Diffstat (limited to 'src/NetworkManagerUtils.c')
-rw-r--r-- | src/NetworkManagerUtils.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/NetworkManagerUtils.c b/src/NetworkManagerUtils.c index dd7467c14d..49fb8cb047 100644 --- a/src/NetworkManagerUtils.c +++ b/src/NetworkManagerUtils.c @@ -2147,10 +2147,9 @@ nm_utils_new_vlan_name (const char *parent_iface, guint32 vlan_id) g_return_val_if_fail (parent_iface && *parent_iface, NULL); - if (vlan_id < 10) { - g_return_val_if_fail (vlan_id > 0, NULL); + if (vlan_id < 10) id_len = 2; - } else if (vlan_id < 100) + else if (vlan_id < 100) id_len = 3; else if (vlan_id < 1000) id_len = 4; |