From b6ec5fea6585a3e68010207bc51645965687b9bf Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 18 Dec 2012 11:37:21 +0200 Subject: [PATCH] audio: Remove unnecessary a2dp_sep_get_lock function --- profiles/audio/a2dp.c | 7 +------ profiles/audio/a2dp.h | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c index e23c016de..a4719d8a4 100644 --- a/profiles/audio/a2dp.c +++ b/profiles/audio/a2dp.c @@ -1633,7 +1633,7 @@ unsigned int a2dp_config(struct avdtp *session, struct a2dp_sep *sep, } if (l != NULL) { - if (a2dp_sep_get_lock(tmp)) + if (tmp->locked) goto failed; setup->reconfigure = TRUE; if (avdtp_close(session, tmp->stream, FALSE) < 0) { @@ -1872,11 +1872,6 @@ gboolean a2dp_sep_is_playing(struct a2dp_sep *sep) return FALSE; } -gboolean a2dp_sep_get_lock(struct a2dp_sep *sep) -{ - return sep->locked; -} - struct avdtp_stream *a2dp_sep_get_stream(struct a2dp_sep *sep) { return sep->stream; diff --git a/profiles/audio/a2dp.h b/profiles/audio/a2dp.h index 6ad809ca8..2c49c5adb 100644 --- a/profiles/audio/a2dp.h +++ b/profiles/audio/a2dp.h @@ -90,6 +90,5 @@ gboolean a2dp_cancel(struct audio_device *dev, unsigned int id); gboolean a2dp_sep_lock(struct a2dp_sep *sep, struct avdtp *session); gboolean a2dp_sep_unlock(struct a2dp_sep *sep, struct avdtp *session); -gboolean a2dp_sep_get_lock(struct a2dp_sep *sep); gboolean a2dp_sep_is_playing(struct a2dp_sep *sep); struct avdtp_stream *a2dp_sep_get_stream(struct a2dp_sep *sep); -- 2.47.3