Diff between a174f7b53d7468a91e04796d80d96d1026b5a46c and b6ec5fea6585a3e68010207bc51645965687b9bf

Changed Files

File Additions Deletions Status
profiles/audio/a2dp.c +1 -6 modified
profiles/audio/a2dp.h +0 -1 modified

Full Patch

diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c
index e23c016..a4719d8 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 6ad809c..2c49c5a 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);