@@ -644,7 +644,6 @@ static void set_volume(const GDBusPropertyTable *property,
struct a2dp_transport *a2dp = transport->data;
uint16_t arg;
int8_t volume;
- bool notify;
if (dbus_message_iter_get_arg_type(iter) != DBUS_TYPE_UINT16)
goto error;
@@ -661,8 +660,7 @@ static void set_volume(const GDBusPropertyTable *property,
a2dp->volume = volume;
- notify = transport->source_watch ? true : false;
- if (notify)
+ if (transport->source_watch || transport->sink_watch)
g_dbus_emit_property_changed(btd_get_dbus_connection(),
transport->path,
MEDIA_TRANSPORT_INTERFACE,