From 605404c781cf716903aca3167292ecaef9da3c9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Mon, 3 Jul 2023 04:20:21 +0200 Subject: [PATCH] spa: bluez: device_stop_timer(): remove redundant decl Also move the declaration of `media_codec_switch_free()` up to the beginning of the file, near the other decls. --- spa/plugins/bluez5/bluez5-dbus.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/spa/plugins/bluez5/bluez5-dbus.c b/spa/plugins/bluez5/bluez5-dbus.c index a6d0fd660..23c5234e4 100644 --- a/spa/plugins/bluez5/bluez5-dbus.c +++ b/spa/plugins/bluez5/bluez5-dbus.c @@ -208,6 +208,8 @@ static void spa_bt_transport_commit_release_timer(struct spa_bt_transport *trans static int device_start_timer(struct spa_bt_device *device); static int device_stop_timer(struct spa_bt_device *device); +static void media_codec_switch_free(struct spa_bt_media_codec_switch *sw); + // Working with BlueZ Battery Provider. // Developed using https://github.com/dgreid/adhd/commit/655b58f as an example of DBus calls. @@ -1287,10 +1289,6 @@ static struct spa_bt_device *device_create(struct spa_bt_monitor *monitor, const return d; } -static int device_stop_timer(struct spa_bt_device *device); - -static void media_codec_switch_free(struct spa_bt_media_codec_switch *sw); - static void device_clear_sub(struct spa_bt_device *device) { battery_remove(device);