summaryrefslogtreecommitdiff
path: root/android/avctp.c
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2014-01-27 18:01:44 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-01-27 11:30:12 -0800
commit1d1f856b7433c08789293a6f91c7f102d75bd723 (patch)
tree729d307c763a945de58c898d492d72c0d678287a /android/avctp.c
parent93719be18195e2cb4c5bce8dd6f4a428942858b4 (diff)
downloadbluez-1d1f856b7433c08789293a6f91c7f102d75bd723.tar.gz
android/avctp: Trivial cleanup code
Avoid extra header calculation and fix wrong line indentation.
Diffstat (limited to 'android/avctp.c')
-rw-r--r--android/avctp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/android/avctp.c b/android/avctp.c
index 615fecf9f..6f9b33bb2 100644
--- a/android/avctp.c
+++ b/android/avctp.c
@@ -798,8 +798,7 @@ failed:
return FALSE;
}
-static gboolean session_cb(GIOChannel *chan, GIOCondition cond,
- gpointer data)
+static gboolean session_cb(GIOChannel *chan, GIOCondition cond, gpointer data)
{
struct avctp *session = data;
struct avctp_channel *control = session->control;
@@ -836,7 +835,7 @@ static gboolean session_cb(GIOChannel *chan, GIOCondition cond,
ret -= sizeof(struct avc_header);
- operands = buf + sizeof(struct avctp_header) + sizeof(struct avc_header);
+ operands = (uint8_t *) avc + sizeof(struct avc_header);
operand_count = ret;
if (avctp->cr == AVCTP_RESPONSE) {