summaryrefslogtreecommitdiff
path: root/android/avrcp-lib.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-04-25 13:59:36 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-04-25 15:05:26 +0300
commit080feb1170c8e352e6942ce1bfb4b96825b75db0 (patch)
tree62c3349d4e803d30dad03789dd80e9ded98a869f /android/avrcp-lib.c
parentcf9bd782b2470b5dd4ce9c4be438bda9d486ebe9 (diff)
downloadbluez-080feb1170c8e352e6942ce1bfb4b96825b75db0.tar.gz
android/avrcp-lib: Remove internal buffer
This removes the internal buffer which is no longer used since iovec changes was introduced.
Diffstat (limited to 'android/avrcp-lib.c')
-rw-r--r--android/avrcp-lib.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/android/avrcp-lib.c b/android/avrcp-lib.c
index ef0f882c3..dc3852b28 100644
--- a/android/avrcp-lib.c
+++ b/android/avrcp-lib.c
@@ -100,9 +100,6 @@ struct avrcp {
struct avctp *conn;
struct avrcp_player *player;
- size_t tx_mtu;
- uint8_t *tx_buf;
-
const struct avrcp_control_handler *control_handlers;
void *control_data;
unsigned int control_id;
@@ -157,7 +154,6 @@ void avrcp_shutdown(struct avrcp *session)
session->destroy(session->destroy_data);
g_free(session->player);
- g_free(session->tx_buf);
g_free(session);
}
@@ -336,9 +332,6 @@ struct avrcp *avrcp_new(int fd, size_t imtu, size_t omtu, uint16_t version)
return NULL;
}
- session->tx_mtu = omtu;
- session->tx_buf = g_malloc(omtu);
-
session->passthrough_id = avctp_register_passthrough_handler(
session->conn,
handle_passthrough_pdu,