diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2011-05-10 12:04:42 +0200 |
---|---|---|
committer | Johan Hedberg <jh@dell.(none)> | 2011-05-15 01:47:09 +0300 |
commit | 984260d913eebddbd7b228704c071f0897640dce (patch) | |
tree | f70a553dac6cfbf11cf1f31f1115111a75819634 /audio | |
parent | 0c5f0168675d85ad8d1848669d2c103c8580050c (diff) | |
download | bluez-984260d913eebddbd7b228704c071f0897640dce.tar.gz |
Remove unused remote_type variable from a2dp_config
Diffstat (limited to 'audio')
-rw-r--r-- | audio/a2dp.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/audio/a2dp.c b/audio/a2dp.c index 6f7a437f..b4ec274e 100644 --- a/audio/a2dp.c +++ b/audio/a2dp.c @@ -2037,7 +2037,6 @@ unsigned int a2dp_config(struct avdtp *session, struct a2dp_sep *sep, struct avdtp_media_codec_capability *codec_cap = NULL; int posix_err; bdaddr_t src; - uint8_t remote_type; avdtp_get_peers(session, &src, NULL); server = find_server(servers, &src); @@ -2082,13 +2081,10 @@ unsigned int a2dp_config(struct avdtp *session, struct a2dp_sep *sep, switch (avdtp_sep_get_state(sep->lsep)) { case AVDTP_STATE_IDLE: - if (sep->type == AVDTP_SEP_TYPE_SOURCE) { + if (sep->type == AVDTP_SEP_TYPE_SOURCE) l = server->sources; - remote_type = AVDTP_SEP_TYPE_SINK; - } else { - remote_type = AVDTP_SEP_TYPE_SOURCE; + else l = server->sinks; - } for (; l != NULL; l = l->next) { tmp = l->data; |