diff options
Diffstat (limited to 'src/nm-activation-request.c')
-rw-r--r-- | src/nm-activation-request.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nm-activation-request.c b/src/nm-activation-request.c index 2c084b874e..6e531b6305 100644 --- a/src/nm-activation-request.c +++ b/src/nm-activation-request.c @@ -396,9 +396,7 @@ master_failed (NMActiveConnection *self) * @specific_object: the object path of the specific object (ie, WiFi access point, * etc) that will be used to activate @connection and @device * @subject: the #NMAuthSubject representing the requestor of the activation - * @device: the device/interface to configure according to @connection; or %NULL - * if the connection describes a software device which will be created during - * connection activation + * @device: the device/interface to configure according to @connection * * Creates a new device-based activation request. * @@ -411,7 +409,7 @@ nm_act_request_new (NMConnection *connection, NMDevice *device) { g_return_val_if_fail (NM_IS_CONNECTION (connection), NULL); - g_return_val_if_fail (!device || NM_IS_DEVICE (device), NULL); + g_return_val_if_fail (NM_IS_DEVICE (device), NULL); g_return_val_if_fail (NM_IS_AUTH_SUBJECT (subject), NULL); return (NMActRequest *) g_object_new (NM_TYPE_ACT_REQUEST, |