device: rename reason argument for NMDeviceDummy

And remove assertion for out-argument to be present.

Follow-up to commit 437c12fc89.
This commit is contained in:
Thomas Haller 2017-02-22 21:46:11 +01:00
parent 8b7d38c8c5
commit 5d336aa1ed

View file

@ -135,13 +135,11 @@ check_connection_compatible (NMDevice *device, NMConnection *connection)
}
static NMActStageReturn
act_stage1_prepare (NMDevice *device, NMDeviceStateReason *reason)
act_stage1_prepare (NMDevice *device, NMDeviceStateReason *out_failure_reason)
{
NMActStageReturn ret;
g_return_val_if_fail (reason != NULL, NM_ACT_STAGE_RETURN_FAILURE);
ret = NM_DEVICE_CLASS (nm_device_dummy_parent_class)->act_stage1_prepare (device, reason);
ret = NM_DEVICE_CLASS (nm_device_dummy_parent_class)->act_stage1_prepare (device, out_failure_reason);
if (ret != NM_ACT_STAGE_RETURN_SUCCESS)
return ret;