From 91a9f816a7c6719641f9ed4d13b74c97f03be561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Sat, 30 Dec 2023 01:22:12 +0100 Subject: [PATCH] pipewire: module-rt: get rid of unused `DBusError` Nothing sets it, so it can be removed. --- src/modules/module-rt.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/modules/module-rt.c b/src/modules/module-rt.c index 653505886..0dc4ffdcf 100644 --- a/src/modules/module-rt.c +++ b/src/modules/module-rt.c @@ -419,12 +419,9 @@ static int pw_rtkit_make_realtime(struct impl *impl, pid_t thread, int priority) dbus_uint64_t pid; dbus_uint64_t u64; dbus_uint32_t u32, serial; - DBusError error; int ret; struct pw_rtkit_bus *connection = impl->rtkit_bus; - dbus_error_init(&error); - if (thread == 0) thread = _gettid(); @@ -448,7 +445,7 @@ static int pw_rtkit_make_realtime(struct impl *impl, pid_t thread, int priority) } if (!dbus_connection_send(connection->bus, m, &serial)) { - ret = translate_error(error.name); + ret = -EIO; goto finish; } ret = 0;