From 1025d5c6006e022fcb430e0ab459e863098aac8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Tue, 11 Jul 2023 19:29:22 +0200 Subject: [PATCH] spa: bluez: remove some unused `DBusError`s --- spa/plugins/bluez5/backend-hsphfpd.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/spa/plugins/bluez5/backend-hsphfpd.c b/spa/plugins/bluez5/backend-hsphfpd.c index 255a7f650..1ef50449e 100644 --- a/spa/plugins/bluez5/backend-hsphfpd.c +++ b/spa/plugins/bluez5/backend-hsphfpd.c @@ -905,7 +905,6 @@ static int hsphfpd_audio_acquire(void *data, bool optional) const char *air_codec = HSPHFP_AIR_CODEC_CVSD; const char *agent_codec = HSPHFP_AGENT_CODEC_PCM; DBusPendingCall *call; - DBusError err; spa_log_debug(backend->log, "transport %p: Acquire %s", transport, transport->path); @@ -926,8 +925,6 @@ static int hsphfpd_audio_acquire(void *data, bool optional) return -ENOMEM; dbus_message_append_args(m, DBUS_TYPE_STRING, &air_codec, DBUS_TYPE_STRING, &agent_codec, DBUS_TYPE_INVALID); - dbus_error_init(&err); - dbus_connection_send_with_reply(backend->conn, m, &call, -1); dbus_pending_call_set_notify(call, hsphfpd_audio_acquire_reply, transport, NULL); dbus_message_unref(m); @@ -1302,9 +1299,6 @@ static DBusHandlerResult hsphfpd_filter_cb(DBusConnection *bus, DBusMessage *m, { const char *sender; struct impl *backend = user_data; - DBusError err; - - dbus_error_init(&err); sender = dbus_message_get_sender(m);