Return-Path: From: Andrei Emeltchenko To: linux-bluetooth@vger.kernel.org Subject: [PATCH 3/6] avctp: Use already calculated avc header Date: Tue, 28 Jan 2014 15:22:42 +0200 Message-Id: <1390915365-4335-4-git-send-email-Andrei.Emeltchenko.news@gmail.com> In-Reply-To: <1390915365-4335-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> References: <1390915365-4335-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: From: Andrei Emeltchenko This removes long (81 characters) line as a side effect. --- profiles/audio/avctp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/audio/avctp.c b/profiles/audio/avctp.c index 6fd1454..78bf1fd 100644 --- a/profiles/audio/avctp.c +++ b/profiles/audio/avctp.c @@ -942,7 +942,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) { -- 1.8.3.2