device: minor cleanup in reapply_cb()

This commit is contained in:
Thomas Haller 2021-09-24 18:02:48 +02:00
parent 7fba0f7cb2
commit ddfd1e8ddf
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -12914,12 +12914,12 @@ reapply_cb(NMDevice * self,
audit_args,
subject,
local->message);
g_dbus_method_invocation_take_error(context, local);
local = NULL;
} else {
nm_audit_log_device_op(NM_AUDIT_OP_DEVICE_REAPPLY, self, TRUE, audit_args, subject, NULL);
g_dbus_method_invocation_return_value(context, NULL);
g_dbus_method_invocation_take_error(context, g_steal_pointer(&local));
return;
}
nm_audit_log_device_op(NM_AUDIT_OP_DEVICE_REAPPLY, self, TRUE, audit_args, subject, NULL);
g_dbus_method_invocation_return_value(context, NULL);
}
static void