Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1175321lqp; Fri, 22 Mar 2024 07:39:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUk8mkrHP/rOPz2tsHbG+vcHvH3Rl3FWNEjo/Os+556yAvHy0Wy1n+Xn1y+Xe4HL6GrMIIGAcBTkcOTacw+6Mdw09TrjZ8SSbmnZ8p5XQ== X-Google-Smtp-Source: AGHT+IH2V/iOOaMvwzX2ouDLkhhHMxNsZY2OXO6tyRIh3EUHQiDBGLHmXnnIToXQxNp3gTNKGZIX X-Received: by 2002:a17:902:bd08:b0:1e0:1bc1:478c with SMTP id p8-20020a170902bd0800b001e01bc1478cmr2702390pls.22.1711118341551; Fri, 22 Mar 2024 07:39:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711118341; cv=pass; d=google.com; s=arc-20160816; b=ITH93JdsZrbEHGAoEgo6u4Mq8Z5aKg8wcam39ECtoYHgz6jiX8sKPcX+giLJBIJtW4 3AK5jNAeTw6A6UzPxr7+juU0LwsmCHOqOvjQLfEDDQncz2+VQE469ERHhHgSl86qoGtJ 9ynqck6XI7hXcde8+yRS4uRgxfMmMjoldzR84708zXW9XWBYpALHkN+9ARPjBGlKRZk8 +mkpt6dLnW5rFP81eN8eJVfltx7nneGgIQ8MDXQKvzywlt3QaUzff4pSrY8h6/u7ogYW KYYg9R+lmAWO7OT0IBIBwOBVRv1ydhvJPaV8WuqSm/FWgOsG0LcpUIcbEYhSHXhT9PBv UEyg== ARC-Message-Signature: i=2; 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=X1loorMf+QvlOFhsm1qxJ7wrN3yiqLfmZe22Cq60aZc=; fh=P2eryyW864W8yd86vNnovMTyYABWMO1Cj199PUXj7e4=; b=VzfB7NH7wW8SDyS/ZL4rKNJtXfmSRFdy5U6GFdmlIU97KokG6nm4OM9BW36SAjjJR+ tt1qNTmTnOjLRC19GEU981Fd3oZ7ZWkWXTuf0n8BJLu2BN56CkCE9zZzoJEB5Cybs1dw j56PXynjDQrGB8O4X9TM/uNqrq0AupxFuTHVmYVp0mssiI9lcvsGLMo6gRT4iaAYv2Bb MaeS2pmKbnKUKBBcowxuH4ezXLkRftKJbuzq2e+q/fxS6OhxkVvsPTV/rN65KNN5Xr5X HGwewjZRVMtTbeUeqOWspNz1PTX2fPdvwVk8XFJI4C+WbsP9CJzDGh4Nhj+wwVTLswHu 0CMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=XMvuyVuH; arc=pass (i=1 spf=pass spfdomain=126.com dkim=pass dkdomain=126.com dmarc=pass fromdomain=126.com); spf=pass (google.com: domain of linux-bluetooth+bounces-2695-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2695-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l14-20020a170902f68e00b001dee64d24ebsi2119882plg.611.2024.03.22.07.39.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 07:39:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2695-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=XMvuyVuH; arc=pass (i=1 spf=pass spfdomain=126.com dkim=pass dkdomain=126.com dmarc=pass fromdomain=126.com); spf=pass (google.com: domain of linux-bluetooth+bounces-2695-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2695-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2021D28357F for ; Fri, 22 Mar 2024 14:39:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1BE2481C2; Fri, 22 Mar 2024 14:38:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=126.com header.i=@126.com header.b="XMvuyVuH" X-Original-To: linux-bluetooth@vger.kernel.org Received: from m16.mail.126.com (m16.mail.126.com [117.135.210.9]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B46E47F5D for ; Fri, 22 Mar 2024 14:38:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=117.135.210.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711118330; cv=none; b=KqjaLzU5V7z+6nz7ijkNYGmtCD7m/+3MUTHQ6wGlPoEL48RV97miv4ISxJ2WdN6VYZHRquAgKOfSQ0Ldw8y9y5Y/NPb4syA/UDVFmEgoGxYdYYOytbEjFWsVG99mGbOdE7CVTrqUVPcQRflRlIjI+462ABJcHmMvNL95xK61jg0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711118330; c=relaxed/simple; bh=src+WaGSgLX7scvyppQr1O8bWgruike09lAr2xHi9r0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=LY3l4I98wkMsXMyL8qhFNiuLN7mtgNTBh9iEysO2IlWeerXu6om8UFheaX6adRF69qlr7MdX2lGVXMVZ6JedYG98EFv6MwaLYz/YhzZouTd199tkMYSlob2Hqv7AQSIEOnZY50GkNd9MxUzUa+LUFKFKqC75j8gb/TRZTtUEaH4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=126.com; spf=pass smtp.mailfrom=126.com; dkim=pass (1024-bit key) header.d=126.com header.i=@126.com header.b=XMvuyVuH; arc=none smtp.client-ip=117.135.210.9 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=X1loo rMf+QvlOFhsm1qxJ7wrN3yiqLfmZe22Cq60aZc=; b=XMvuyVuHMeulso/qfR3or FZTUlSP2E6wjk6SXhvpF/NmGZvkKnmAP6v5kq7kXB+WadKLnXUr6y17+WbNgPcJD v5D/Xxv7wDaCFYiEfsrUoPSAacc7fJMTVoNuTDEbJllHKUuHqDiDKvP8+TjllUBL 0sBB6ygccvRayIS04kzSvg= Received: from localhost.localdomain (unknown [58.22.7.114]) by gzga-smtp-mta-g0-2 (Coremail) with SMTP id _____wD3n5_pl_1lmkIWAQ--.55737S2; Fri, 22 Mar 2024 22:38:35 +0800 (CST) From: Xiao Yao To: linux-bluetooth@vger.kernel.org, luiz.dentz@gmail.com Cc: Xiao Yao Subject: [PATCH BlueZ] avctp: Remove redundant UUID checks and additions Date: Fri, 22 Mar 2024 22:38:30 +0800 Message-Id: <20240322143830.1476938-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:_____wD3n5_pl_1lmkIWAQ--.55737S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrKFW7Xw4rGr4kury3AF4Dtwb_yoW3WFc_Z3 s5ZryUWa18t34vvF43Xw4UXr9aqr4Sq395uas3trn7KF4UXrWYgw17ZFWYvrn3u3Z3Cry3 ZFy8ZF45KrnxWjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xRReOJ7UUUUU== X-CM-SenderInfo: 50ld0yhhtl0xhhdo3xa6rslhhfrp/1tbiEBap1WVLafNveQABsZ From: Xiao Yao --- profiles/audio/avctp.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/profiles/audio/avctp.c b/profiles/audio/avctp.c index 8ad146df1..6199ee951 100644 --- a/profiles/audio/avctp.c +++ b/profiles/audio/avctp.c @@ -1597,12 +1597,6 @@ static void avctp_confirm_cb(GIOChannel *chan, gpointer data) if (session == NULL) return; - if (btd_device_get_service(device, AVRCP_REMOTE_UUID) == NULL) - btd_device_add_uuid(device, AVRCP_REMOTE_UUID); - - if (btd_device_get_service(device, AVRCP_TARGET_UUID) == NULL) - btd_device_add_uuid(device, AVRCP_TARGET_UUID); - switch (psm) { case AVCTP_CONTROL_PSM: avctp_control_confirm(session, chan, device); -- 2.34.1