spa: bluez: remove some unused DBusErrors

This commit is contained in:
Barnabás Pőcze 2023-07-11 19:29:22 +02:00
parent 10f1b6c13c
commit 1025d5c600

View file

@ -905,7 +905,6 @@ static int hsphfpd_audio_acquire(void *data, bool optional)
const char *air_codec = HSPHFP_AIR_CODEC_CVSD; const char *air_codec = HSPHFP_AIR_CODEC_CVSD;
const char *agent_codec = HSPHFP_AGENT_CODEC_PCM; const char *agent_codec = HSPHFP_AGENT_CODEC_PCM;
DBusPendingCall *call; DBusPendingCall *call;
DBusError err;
spa_log_debug(backend->log, "transport %p: Acquire %s", spa_log_debug(backend->log, "transport %p: Acquire %s",
transport, transport->path); transport, transport->path);
@ -926,8 +925,6 @@ static int hsphfpd_audio_acquire(void *data, bool optional)
return -ENOMEM; return -ENOMEM;
dbus_message_append_args(m, DBUS_TYPE_STRING, &air_codec, DBUS_TYPE_STRING, &agent_codec, DBUS_TYPE_INVALID); 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_connection_send_with_reply(backend->conn, m, &call, -1);
dbus_pending_call_set_notify(call, hsphfpd_audio_acquire_reply, transport, NULL); dbus_pending_call_set_notify(call, hsphfpd_audio_acquire_reply, transport, NULL);
dbus_message_unref(m); dbus_message_unref(m);
@ -1302,9 +1299,6 @@ static DBusHandlerResult hsphfpd_filter_cb(DBusConnection *bus, DBusMessage *m,
{ {
const char *sender; const char *sender;
struct impl *backend = user_data; struct impl *backend = user_data;
DBusError err;
dbus_error_init(&err);
sender = dbus_message_get_sender(m); sender = dbus_message_get_sender(m);