Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7843078rdb; Thu, 4 Jan 2024 09:16:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IFH+UvyWgYv3eEVTGSQHIxENGloVOfNHAa8MecRdDMl4dzNIDpyggtm3UWRow+hZiS6fThN X-Received: by 2002:a17:902:b088:b0:1d4:e308:ca56 with SMTP id p8-20020a170902b08800b001d4e308ca56mr363123plr.13.1704388602484; Thu, 04 Jan 2024 09:16:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704388602; cv=none; d=google.com; s=arc-20160816; b=z3Er70NnHVFCYCEZGILOvv/I9xBhe+6U0HR+epaxV4PHs0zbX6kFaXq6haSgBXSSZ2 tDLKt4BVeNjqtqjxWhniZvVrWbxL+pQBkbmMej9fgI1XAJI2wA4N2nsT6HUpi3ybG//l R2Quym2bZg559NwhBT973FotualgfgKQ3sLh9bjbAKODtLOVk44nXa+voKbokCam1WhT oBPMkvzgFfetGmDhEqzZQaJ9C0EwXQZX8LneV/mgQU4PpoxKzBWN78W+SPzx5VzMUYEV LImUY9q6B9n/fkHUU4KiaoS5c46Wp3hdCAKi/+7SgNmqy3HkwI639p+IK5+8IL3oReoC AgbA== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=vTYyObde6xXWQWYYb+DFaejmQLgBLQDiWCwvb6Eu7kw=; fh=V55vXmYu0kw5gQpdQ5dNb3kOR3FRKUEawX2qLN3J/TI=; b=I9fg/6e+L6TitoV3V7/anq81ul/XT8v94WBcldWWGy/y+OE2AO21s+ky2aPD7Lw2dG s/8SEVdrsbqNrAJgc5Qf47RSQbwEq2IjYeS2KUOwQIbzncX0+Yet7JZle9fPtrmbiIsg zLUP+T1H5Zdsy9EzuDPGvYOeXxSNgtr0Eu3AYpiHGFa0FjKGYww9FmXOXKbBmPKClOct 5CUAkNl5N1INBVXX17Iwb8kdjDpIsSNNsGpo2DRV1XfpyjA2Nb0XWhyP3jIQdLNV95jz SoZi/kbeGh/nS6+mTtPYAy/S4E+H78OEYzvGxvbbT6TLHRwCt1+lYEL6FNAAyWdJygzc 5DRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=X2kDi058; spf=pass (google.com: domain of linux-bluetooth+bounces-887-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-887-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id c24-20020a63ef58000000b005cdfcb3908bsi20811790pgk.316.2024.01.04.09.16.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 09:16:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-887-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=X2kDi058; spf=pass (google.com: domain of linux-bluetooth+bounces-887-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-887-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 95DDAB23A72 for ; Thu, 4 Jan 2024 17:16:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 449E6286AE; Thu, 4 Jan 2024 17:14:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=126.com header.i=@126.com header.b="X2kDi058" X-Original-To: linux-bluetooth@vger.kernel.org Received: from m15.mail.126.com (m15.mail.126.com [45.254.50.223]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2866725578 for ; Thu, 4 Jan 2024 17:13:55 +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=vTYyO bde6xXWQWYYb+DFaejmQLgBLQDiWCwvb6Eu7kw=; b=X2kDi058TCAC2Luj2g52t Q4OABhScmfC0YB+0SU1iIpXvfH3jSIvJLyXC5NauYYDzGghmAhKSGLR+t7zZR8up 3nWGQXuEzZpY0IfateWFRQr5QIka0JzKCwfZRkZ1GtoCYuj2FPsJfBmyQ4GPB0Is N7ht8xHUbiScs7jHR/zw5s= Received: from localhost.localdomain (unknown [58.22.7.114]) by zwqz-smtp-mta-g2-0 (Coremail) with SMTP id _____wDnrx1F55ZlcYNmAA--.59396S2; Fri, 05 Jan 2024 01:13:42 +0800 (CST) From: Xiao Yao To: linux-bluetooth@vger.kernel.org Cc: Xiao Yao Subject: [PATCH BlueZ v1] avdtp: Remove unused transaction parameter Date: Fri, 5 Jan 2024 01:13:38 +0800 Message-Id: <20240104171338.124096-1-xiaokeqinhealth@126.com> X-Mailer: git-send-email 2.34.1 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:_____wDnrx1F55ZlcYNmAA--.59396S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7Ar4UXw18Jw1UKrW7Ar45trb_yoW8tw15pF yfKry8Crs7XF1vvryxXr4DZrWSkrn7J340krW8K3Z0yFsrCrs0qFykKry0k34DGrykXr43 uFyYqas7Gw4jkrJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07U3DGrUUUUU= X-CM-SenderInfo: 50ld0yhhtl0xhhdo3xa6rslhhfrp/1tbi6Bpb1WVLZNVi8AABsw From: Xiao Yao 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 10ef380d4..296439c43 100644 --- a/profiles/audio/avdtp.c +++ b/profiles/audio/avdtp.c @@ -418,11 +418,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, @@ -2284,7 +2284,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)) { @@ -2294,7 +2293,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)) { @@ -2932,7 +2930,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; @@ -3046,7 +3044,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