trivial: clarify has_ip_config()

Make it more explicit that it returns TRUE for UNMANAGED state.
This commit is contained in:
Pavel Šimerda
2013-06-28 21:05:20 +02:00
parent 46abdf254c
commit f548a49782

View File

@@ -4963,9 +4963,11 @@ has_ip_config (NMDevice *self)
if (priv->ip4_state != IP_DONE && priv->ip6_state != IP_DONE)
return FALSE;
return ( ( priv->state >= NM_DEVICE_STATE_IP_CONFIG
&& priv->state <= NM_DEVICE_STATE_DEACTIVATING)
|| (priv->state == NM_DEVICE_STATE_UNMANAGED));
if (priv->state == NM_DEVICE_STATE_UNMANAGED)
return TRUE;
return (priv->state >= NM_DEVICE_STATE_IP_CONFIG
&& priv->state <= NM_DEVICE_STATE_DEACTIVATING);
}
static void