summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-09-24 18:02:48 +0200
committerThomas Haller <thaller@redhat.com>2021-09-24 18:03:05 +0200
commitddfd1e8ddf02a4b0b02ca08a1ee55584c4373d0e (patch)
treef8d687b7032d6ba68d2b1e5151bcc26f1bc563a0
parent7fba0f7cb2764a6c5f81c1993dbc580b25ae9b0f (diff)
downloadNetworkManager-ddfd1e8ddf02a4b0b02ca08a1ee55584c4373d0e.tar.gz
device: minor cleanup in reapply_cb()
-rw-r--r--src/core/devices/nm-device.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/devices/nm-device.c b/src/core/devices/nm-device.c
index ef835a2b8b..7faec23c8e 100644
--- a/src/core/devices/nm-device.c
+++ b/src/core/devices/nm-device.c
@@ -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