Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp463812lqo; Fri, 10 May 2024 05:35:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXMOpp2/t8PYDIKtMZJve7HjjrC0LTE5ubMNO2oNRfwoXJpp32v8uvN5QwRBc+KkUji8BcnH6AekJ5AvZXiJ0h6rzf4BXiHPVdhwo9B+g== X-Google-Smtp-Source: AGHT+IGJmCChK2x1LQNy7wdE469VqlqBIYaVWvFwWVBvozswp2U3YmkMv3BW8EaT25fgCI4NhpqO X-Received: by 2002:a17:90a:4c84:b0:2b6:3034:4ae6 with SMTP id 98e67ed59e1d1-2b6ccd93d4dmr2788822a91.33.1715344516439; Fri, 10 May 2024 05:35:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715344516; cv=pass; d=google.com; s=arc-20160816; b=tLj0iwtbx5DAv56ctc2GQYZ3tw37a40re0xKJU8m2sTBp9ZidpKiiaKXkFsWCvGf1q rIVaEEUyeRNZ2BGqlrGN+QK0Epiv1q8uV/qO0J86XVbbNyrBCnKhfAhfolENTgS9R7RW FTA/yFPpFjERc0ZZJqIWwUSI2OGZL938ugE2CH5hUM61yvU8TjX8sTNF5gBTKWoafeet CP/nhqA43pLX2yjEHsGHKHTUc4n93XJhPp1yNkJu+dF4gqs6PGYY2K7AqLHsJGAWhvFw r4FX1EdrfglN6kLYNOQsAdS4UduQV7KD0quae9xZt+Je9us7tpzpt/fccqPYPnMqX1le 0rCg== 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:cc:to:from; bh=PRecc7Bg9G1Oo0kyDW9fgkiEaHj9OWYeATKSInd+8L4=; fh=uo5u2TQK/HQlhydMwGLjBAnuDwaLxndJ/cgWTjIagS8=; b=t8Tr50uNBv+NuLJUvcOmmUtnXYxSWUBae4an6EzX5Tpw/rkfBCpSNj3XW36MzpcEKj Yxwc870aiRBb+ja9gH6awfNci0QlXbVF35e4CkW9vpNVP9VY0c3SyVZv3LdsGgXDr7CZ Q0mX/uTHUnTmV7VghXvoQh+Vxvk3O29CB0HmQW0ZBlowDYB/Zqq063aJbgKKvgeoOMnd 3POrjvIJGb9Xr8/BtF5mHIhfOdlG6XBPgUuwwaCH2mtSLRydIT+2xtRnmxmv7m2UdRZe 2w57mvp11HNz6KWTvFRwvSn0QsaF9rMdkSYgF5n7fY3DpB5bIxx2xppXCnDJfuQo4u+d Ld4g==; 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-4483-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4483-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b670f2b604si3715266a91.15.2024.05.10.05.35.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:35:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4483-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; arc=pass (i=1 spf=pass spfdomain=hadess.net); spf=pass (google.com: domain of linux-bluetooth+bounces-4483-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4483-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8B986B2521F for ; Fri, 10 May 2024 12:15:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3EB216F26E; Fri, 10 May 2024 12:14:18 +0000 (UTC) X-Original-To: linux-bluetooth@vger.kernel.org Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (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 2EC7917084D for ; Fri, 10 May 2024 12:14:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715343258; cv=none; b=LIyho4TM/d50Ax+vMpC9yNMXNS971L6ks/8/+rmaTfvINPbO3tZXR3tx0KthFNnfCUbjARyliaxcZ58dmNzpeS4eeO9hZAHcuSJRi17wKoOHB64mZQYpA7aQ/YYB/GeBK/sPnpiF3FB9//mgBgpy5/2DgRe6O8CMfH2V09XzpWs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715343258; c=relaxed/simple; bh=M3Ywyy+4fuNjRQVFMj+DtHH2PN8++yYDfen2QT1Gpis=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DmSr6Iq7Q4VlqDAV4H7KdaEy2pO1jEcW6KCvSes8+g1CVQb/QA+Gi3Z8NZhJXOLwhLdgcU0TtlH4FLZGu+Lo82SeJubBjqnxqKwbSbwuMHDnH8m/5ONLqprFNHJunjpf2N+BeIaB1HQYkF+IfRFGJpwWFoCDtLSthF2BQlXPKuA= 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.195 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 ED21360013; Fri, 10 May 2024 12:13:59 +0000 (UTC) From: Bastien Nocera To: linux-bluetooth@vger.kernel.org Cc: Bastien Nocera Subject: [BlueZ v2 14/20] shared/vcp: Fix copy/paste error Date: Fri, 10 May 2024 14:10:24 +0200 Message-ID: <20240510121355.3241456-15-hadess@hadess.net> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240510121355.3241456-1-hadess@hadess.net> References: <20240510121355.3241456-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