Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7162004rdb; Wed, 3 Jan 2024 06:40:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IEwNZgClNdTXmYvW91GFU1sw/d5ZdgYFw2om7Ifw553KkR1xBW7wukGIHSvYse9sh0mpSE4 X-Received: by 2002:a05:6a00:1909:b0:6da:b0ce:e990 with SMTP id y9-20020a056a00190900b006dab0cee990mr1435774pfi.58.1704292825822; Wed, 03 Jan 2024 06:40:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704292825; cv=none; d=google.com; s=arc-20160816; b=w7//Feb/0a5eh/j8hDPGSXVnvWqpQvUepGDhPSKm8G8m8xTjmyKjLf1nIjrGIGYcZz 4UyzrS3T4h4zs5AxQEIOZYNhbCCEgjH/cIYwJBHJTyeYAluPxXqcyp7UMenO0Jnic2TT wvf3+OTLGrQWQRjaMSGnGw3wx6r766LkdKJC/Z8pkC28upd6OrS1EMeiI5YklwmZZ9Dq sOWz1LsQREk99SBDulGe+Iy6S6XY9JA4be9sZH32p6evYmiDqtUHbNv6E5cnxt5Xfnb/ nTNQ3Gv3ALHK9s+rCzqxLUWv+D4DSpGIHGOURsMFrXfHCTswBpXsX0e9x9jSqnpJtO5f ycgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=+Fdj32Pb4r88e6qphAJLFGl8V4UelBU9LghBwyUp7ZQ=; fh=toC0Ghr4IPUAyeI9SzIFpwDMytsGgDZYnVIxM+eKC8c=; b=d5FIcoRMNPsgrQHhu6BvxrFH7SUaNltKXLdYcqxXFpskGgOzJ2LTAasMCmlKKDFWdT T/aFPnlL/zwxCDTaPOUWUPu7aNLfklp2iuTTuLk1X0K0ReBNGBpx8Fgstx8VifMNzG0F Tl+RcfDZCz+O2zOXQED+mYdOp4WRuGAH8N7JjmgCFhii6MtCEQsQP9BCnxRju0+oqzwo Wv9hF8N/k0hDKOAMUFkU7YOGeIHLInoOFVwQqY7X2j0AAT/FZVKJZb9t3OpLukELsNH2 SPIC5tXviztFehlc4QNhsjtWCBLl7+vqXeraHx41ZEZLUd7d5d7Re9zD4RIH/b90z35V PZgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=m7FXtEZn; spf=pass (google.com: domain of linux-bluetooth+bounces-856-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-856-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 11-20020aa7924b000000b006d972181bc8si21087667pfp.5.2024.01.03.06.40.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 06:40:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-856-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=m7FXtEZn; spf=pass (google.com: domain of linux-bluetooth+bounces-856-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-856-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id AB068B232A5 for ; Wed, 3 Jan 2024 14:39:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 96AF71A5B9; Wed, 3 Jan 2024 14:39:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=126.com header.i=@126.com header.b="m7FXtEZn" X-Original-To: linux-bluetooth@vger.kernel.org Received: from m15.mail.126.com (m15.mail.126.com [45.254.50.224]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BBAF1A585 for ; Wed, 3 Jan 2024 14:39:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=126.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=126.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=+Fdj3 2Pb4r88e6qphAJLFGl8V4UelBU9LghBwyUp7ZQ=; b=m7FXtEZnYX1q78tGBchrA ybqMeO4xUXkNrNYgaDGDePjX99EPI0NYO+wOTNuFKNW0/Z6bzI5rTATZnfBIWfzi Y81MIuUK9KvDCpB0Cs9Y6pGnGBr5hROlVETBGxqnO2xJEye5lQ4TRtSBjkAVVU1F RKeZ/Xv7PdVG4zhhxYXVyM= Received: from localhost.localdomain (unknown [58.22.7.114]) by zwqz-smtp-mta-g2-1 (Coremail) with SMTP id _____wD3Hz6McZVlFocNAA--.13600S3; Wed, 03 Jan 2024 22:39:10 +0800 (CST) From: Xiao Yao To: linux-bluetooth@vger.kernel.org Cc: Xiao Yao Subject: [PATCH BlueZ v3 2/2] avdtp: Remove unused transaction parameter Date: Wed, 3 Jan 2024 22:39:04 +0800 Message-Id: <20240103143904.77146-2-xiaokeqinhealth@126.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240103143904.77146-1-xiaokeqinhealth@126.com> References: <20240103143904.77146-1-xiaokeqinhealth@126.com> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID:_____wD3Hz6McZVlFocNAA--.13600S3 X-Coremail-Antispam: 1Uf129KBjvJXoW7KrWrtFWkCr4rGw4fAw1DZFb_yoW8tF1fpF yrKry8CrZrXF1kZryxXr4DZFWSkrn7J348CrW8KasayFsrCrs0qFykKryjk34DGry8Xr43 uFyYgas7Gw4jkrJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0pR5CzXUUUUU= X-CM-SenderInfo: 50ld0yhhtl0xhhdo3xa6rslhhfrp/1tbi6BFa1WVLZLvx1QAAsj This removes unused "transaction" param from avdtp_parse_resq/rej. Signed-off-by: Xiao Yao --- profiles/audio/avdtp.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/profiles/audio/avdtp.c b/profiles/audio/avdtp.c index 386c7f67c..fb49ad45a 100644 --- a/profiles/audio/avdtp.c +++ b/profiles/audio/avdtp.c @@ -419,11 +419,11 @@ static int send_request(struct avdtp *session, gboolean priority, void *buffer, size_t size); static gboolean avdtp_parse_resp(struct avdtp *session, struct avdtp_stream *stream, - uint8_t transaction, uint8_t signal_id, + uint8_t signal_id, void *buf, int size); static gboolean avdtp_parse_rej(struct avdtp *session, struct avdtp_stream *stream, - uint8_t transaction, uint8_t signal_id, + uint8_t signal_id, void *buf, int size); static int process_queue(struct avdtp *session); static void avdtp_sep_set_state(struct avdtp *session, @@ -2293,7 +2293,6 @@ static gboolean session_cb(GIOChannel *chan, GIOCondition cond, switch (header->message_type) { case AVDTP_MSG_TYPE_ACCEPT: if (!avdtp_parse_resp(session, session->req->stream, - session->in.transaction, session->in.signal_id, session->in.buf, session->in.data_size)) { @@ -2303,7 +2302,6 @@ static gboolean session_cb(GIOChannel *chan, GIOCondition cond, break; case AVDTP_MSG_TYPE_REJECT: if (!avdtp_parse_rej(session, session->req->stream, - session->in.transaction, session->in.signal_id, session->in.buf, session->in.data_size)) { @@ -2941,7 +2939,7 @@ static gboolean avdtp_delay_report_resp(struct avdtp *session, static gboolean avdtp_parse_resp(struct avdtp *session, struct avdtp_stream *stream, - uint8_t transaction, uint8_t signal_id, + uint8_t signal_id, void *buf, int size) { struct pending_req *next; @@ -3055,7 +3053,7 @@ static gboolean stream_rej_to_err(struct stream_rej *rej, unsigned int size, static gboolean avdtp_parse_rej(struct avdtp *session, struct avdtp_stream *stream, - uint8_t transaction, uint8_t signal_id, + uint8_t signal_id, void *buf, int size) { struct avdtp_error err; -- 2.34.1