3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

resolve: Simplify dbus_message error handling logic

This commit is contained in:
Denis Kenzior 2021-04-30 11:04:33 -05:00
parent 6c5fe246a7
commit f35a40c0c5

View File

@ -131,11 +131,9 @@ static void systemd_link_generic_reply(struct l_dbus_message *message,
const char *name; const char *name;
const char *text; const char *text;
if (!l_dbus_message_is_error(message)) if (!l_dbus_message_get_error(message, &name, &text))
return; return;
l_dbus_message_get_error(message, &name, &text);
l_error("resolve-systemd: Failed to modify the %s entries. %s: %s", l_error("resolve-systemd: Failed to modify the %s entries. %s: %s",
type, name, text); type, name, text);
} }