mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 18:00:10 +01:00
device: minor cleanup of code path in delete_cb()
This commit is contained in:
parent
840abc6c45
commit
c68cbcb8fa
1 changed files with 6 additions and 3 deletions
|
|
@ -13583,10 +13583,13 @@ delete_cb(NMDevice *self,
|
|||
|
||||
/* Authorized */
|
||||
nm_audit_log_device_op(NM_AUDIT_OP_DEVICE_DELETE, self, TRUE, NULL, subject, NULL);
|
||||
if (nm_device_unrealize(self, TRUE, &local))
|
||||
g_dbus_method_invocation_return_value(context, NULL);
|
||||
else
|
||||
|
||||
if (!nm_device_unrealize(self, TRUE, &local)) {
|
||||
g_dbus_method_invocation_take_error(context, local);
|
||||
return;
|
||||
}
|
||||
|
||||
g_dbus_method_invocation_return_value(context, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue