Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp368380lqo; Fri, 10 May 2024 02:19:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUnmZewNdwIlLTjQcnAZC0LV2OE59vIl9XsOtBx3ukH5vDuzzMefVxvxLSAFyHFT8NKwApbaZ8Qz3/KrzrkUefy3wnnjWMg0hlEC/Q21A== X-Google-Smtp-Source: AGHT+IHY1lvH+nuZ3w2x3kw0i82C4lKkfwfwsy0cNkxUU/5R68H/1ZjNb5WgjiH7KudXk1gSWgE8 X-Received: by 2002:a05:620a:5638:b0:792:bf2f:377c with SMTP id af79cd13be357-792c75f364emr197753785a.50.1715332749691; Fri, 10 May 2024 02:19:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715332749; cv=pass; d=google.com; s=arc-20160816; b=ts9DSPAxdXlTrylLgDpXeEO2iMg/MqPu9dbQGEgzn0l53LWNtpaIIU2WR9ppal01Wm ol/Lz1C1UCn/TnwBI3f8Gdk0PA81110cOz9xc7+KXQSPiew89h6wqxTENl6g0K3FXm76 onjHhBGhrIu1J+WD0+wFKlUmQeJrvKEeRwncCQfUHaU8O/zuBE1I25HPzUbNbygbfaOS jy1fthGvyXUGdGEgc6JW9TxEb0P160cJk6kwudSbdrJzcuWZ0tHDxyuf0v9T/r6GAts3 6k5zO3RWsGBOb6Q912fSoDUWAKUiSdp8MAGhhG0hdsg5RER/7a9l0o9iaJSSJ6z160VU 6r2A== 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:references:in-reply-to:message-id :date:subject:to:from; bh=PRecc7Bg9G1Oo0kyDW9fgkiEaHj9OWYeATKSInd+8L4=; fh=4lGQI6056MBa4/oovMyIYaKLn+Wz/24RGvUivMmQP8E=; b=BPT2V4rFepch3X/E0QTP8s0I2hbnJsdbCcbzVysWP2nW1AaGnmpUOOAjUiAL6mbB7e 0JMLKTRHO5qqc14C5Hglb8zng9NH+m4/6IVoxTkwY4QBVnV48cqPGWBeynjaPKssF2Oe kq1LOa7eGTElKbBz4tIhnWzq290AIAcLk34BUPQsbGrG4SSKrltZ80n1/M5s+vJLZFXj 7DDjp3T1m2E5vyxGJoByrCaNc/DMpRuB7WBTu8/d/9OPCqBFlxZXXynn1inb8p1aFGMS ldUGfm+OlTWwyvzEsAg7s3N5D1UbE/qpvs7kK6Fm1HPAChqTmLNpTuSB5IRJnIu/mzRd nWKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=hadess.net); spf=pass (google.com: domain of linux-bluetooth+bounces-4460-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4460-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf364ef4si293836885a.636.2024.05.10.02.19.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 02:19:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4460-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=hadess.net); spf=pass (google.com: domain of linux-bluetooth+bounces-4460-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4460-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 42FD41C22139 for ; Fri, 10 May 2024 09:19:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7782C165FDB; Fri, 10 May 2024 09:18:29 +0000 (UTC) X-Original-To: linux-bluetooth@vger.kernel.org Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 99667165FD9 for ; Fri, 10 May 2024 09:18:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715332709; cv=none; b=Zc2pFJgPbUNaMtoG4fpnEKYhcyFRQLns6ooDOAWEDZz0DCf51KZ0nGlB5vaqlTP0O5dhSedr9ViTKrdqR6gzcSTVjDcQmAg7IoPZ6/qLGCE3h9OnphQqMFAG2cP2/cqLaqBxRrPtStGZBklyZKGqHpJU2JvOeX00wCxT/c/FL+s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715332709; c=relaxed/simple; bh=M3Ywyy+4fuNjRQVFMj+DtHH2PN8++yYDfen2QT1Gpis=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gvnRqi2x203XAT0TAwj8VcCjHnpciepcJCxN3FyNdHHm5/o44HtFFtMHSevixfrRubHaYOJ+Eiwd9BDRLg/ALLguw3XS7E6su15+Y5GRr1U6yi/ISOhUCKwMnPe5KdsSzOVr1ckz9vTM4q8NslfAAeRvFCh/E91IvG0K5a8qPJo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net; spf=pass smtp.mailfrom=hadess.net; arc=none smtp.client-ip=217.70.183.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hadess.net Received: by mail.gandi.net (Postfix) with ESMTPSA id 309611BF216 for ; Fri, 10 May 2024 09:18:18 +0000 (UTC) From: Bastien Nocera To: linux-bluetooth@vger.kernel.org Subject: [BlueZ 14/14] shared/vcp: Fix copy/paste error Date: Fri, 10 May 2024 11:11:12 +0200 Message-ID: <20240510091814.3172988-15-hadess@hadess.net> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240510091814.3172988-1-hadess@hadess.net> References: <20240510091814.3172988-1-hadess@hadess.net> 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-GND-Sasl: hadess@hadess.net Error: COPY_PASTE_ERROR (CWE-398): [#def97] [important] bluez-5.75/src/shared/vcp.c:2610:16: original: "aics->gain_stting_prop" looks like the original copy. bluez-5.75/src/shared/vcp.c:2625:16: copy_paste_error: "gain_stting_prop" in "aics->gain_stting_prop" looks like a copy-paste error. bluez-5.75/src/shared/vcp.c:2625:16: remediation: Should it say "aud_ip_type" instead? 2623| 2624| aics = vcp_get_aics(vcp); 2625|-> if (!aics || aics->gain_stting_prop) 2626| return; 2627| --- src/shared/vcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/vcp.c b/src/shared/vcp.c index 7ba54e64adc0..b7e17e448b74 100644 --- a/src/shared/vcp.c +++ b/src/shared/vcp.c @@ -2622,7 +2622,7 @@ static void foreach_aics_char(struct gatt_db_attribute *attr, void *user_data) value_handle); aics = vcp_get_aics(vcp); - if (!aics || aics->gain_stting_prop) + if (!aics || aics->aud_ip_type) return; aics->aud_ip_type = attr; -- 2.44.0