Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2638752lqb; Tue, 28 May 2024 06:20:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWX1UKzo46mxYE7twYAH2emSFxqmt7IBhnUhXzxLVLQbyQxeZDIkkoiEghgEde1d5RAsKbYYHtnQFhfOwOz00687KlviqOiFopXfZuEXg== X-Google-Smtp-Source: AGHT+IHTnFRZmz2LhLLtN1/nihKurzQ3ksQShNvH3mfhyB8WSR+7UvnDlDAkBzdQl3KmZer3X/GF X-Received: by 2002:a17:903:2306:b0:1f4:a77a:3bb9 with SMTP id d9443c01a7336-1f4a77a3ea0mr57120715ad.64.1716902436897; Tue, 28 May 2024 06:20:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716902436; cv=pass; d=google.com; s=arc-20160816; b=m/T5KkUxGFDc19sYtZrzf9nDltcBZIlzB0TvkcH9tsPiSX7kkr1eWmJokvWqWAMjIE XCT1yQM02FwOGTvXEletVr805wOl473+dl2/w0HhlVKRy1Bi4PXO6Zt3mdvV3RpDWft7 axpMO6lLe70s/cnSdEwI8VtOlGRJrPtjKBJvhcmstQLyhYoldbXxOdDaHrqXHySM66D1 jELWsJkar8pcppjh3Tv1SD5IaPvYvQfuy+5pLP+8Qrg3xUau7D+SXl67IM3EuK4qZnkf lWuryhHyC0r0eHab6Dq5nsSm+AC/rh5ybkG+WMk8FRNuJi8vTmFJ/cEc3kc7L/GiqWSv 4FmA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=Oyv/TEtAXI/jv0y4KsPZ6Bvwp5EaOjmukH66K+u79No=; fh=GHislm9NjheIzAtmFXE9wjIiJoQITOj4lgcgXUd2vD4=; b=PzRJPIJDQ77M2jxtBQB+54MPy56z3EOsSqCSFfZtpXhs6bXRHnAMlTifASMCBxAY1S wWXYWYwv6bkDF5W53bu3an+4TprvXtIoN2qg+JPLcg7N/MVn1HgPGJ207/Pk9AzFhmdu vYL2eJoQbK7LA5Q0fdCeWl8yTvZHIhGrS+/AUlsC/1hr36hnSKqJIVO8uQyyLIiK1X8z ALFIl1sSRoYK05CF4c7fVYrukRgc8qXnWPHLlhX4ulYrd3sJKjwYPaptUelBL5/eNMJe 01B0JakGlzxC/UFPpuPP+vTwiB2ccbPYOTO/biJ3fnHj6DhMbAJ6J6fCqe+89Q6jt+8o HG/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l4pVrrGM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192391-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192391-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c998936si80330485ad.376.2024.05.28.06.20.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 06:20:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192391-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l4pVrrGM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192391-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192391-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 686C0285358 for ; Tue, 28 May 2024 13:20:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7EF1E175551; Tue, 28 May 2024 13:15:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="l4pVrrGM" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.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 8B3F5174EC2; Tue, 28 May 2024 13:15:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716902144; cv=none; b=JewKQ8116Qv6yP1cfqGyZXSWJvEe0KAqYtSfirogQpyzVOMGaJV2C46ETlN/lMHUOgGWI1BlC094J1G2TLgdcl+iAHFiqEDwsN160+Qu/gOcFOzoJpk0yYcokXjRXOxn8BcB/TGfDxSOTDUWtBCSJdnxAY5sS94VxE75Z1VNxsg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716902144; c=relaxed/simple; bh=eowKlObErurap8texC0IeDebTUGtflcKm/yE3YPRDsM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QICpFCewiEEozN7na2fg3APDX63VNPYrftR+E3zNL4bfUa7LYN8n+uotq25YDYvLLKHj8DbIqMkJY2PjpQKUVnEoLe+to54xW5oV7QWi7+VNWb7juZuNcRKya9p1ncoDnW0ZsmOXGQmK3kMXaRx8MpznH85vKmT/sFDjWosn2ts= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=l4pVrrGM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6292AC32782; Tue, 28 May 2024 13:15:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716902144; bh=eowKlObErurap8texC0IeDebTUGtflcKm/yE3YPRDsM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=l4pVrrGMR+eaVZ650RASvdPqk5Qs6N42cWpsfR2nnawaAJiiMFgdrRT93DRUf/NI+ upH8s1Xi09lDAbY/rtQ+L0dmSHGf5JBpNUFHq7OABcSPyZRN4kGawzac80CFzsE8Iq jKN45764pVJGkTLy99ycPSxigRdDxBjVUP/baIb00fJdRvnRop2NRkvJzr2i0tM0Nb QnKPYfEeZq4ywEt5XxswykkrHOwWjAbHNOtbbWk9u96TIDsMn3721Q3VqzqdwManl7 HZ5ig7wE6G6R4GumGn45oePa4hcNanuz7W7D9UsPVTYJ3/N3ki7DKqNrMBiSf3saxs gi82dpAA0N8CA== From: Benjamin Tissoires Date: Tue, 28 May 2024 15:14:50 +0200 Subject: [PATCH HID 12/13] HID: bpf: Artist24: remove unused variable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240528-hid_bpf_struct_ops-v1-12-8c6663df27d8@kernel.org> References: <20240528-hid_bpf_struct_ops-v1-0-8c6663df27d8@kernel.org> In-Reply-To: <20240528-hid_bpf_struct_ops-v1-0-8c6663df27d8@kernel.org> To: Shuah Khan , Jiri Kosina , Jonathan Corbet , Alexei Starovoitov Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, linux-input@vger.kernel.org, linux-doc@vger.kernel.org, Benjamin Tissoires , Peter Hutterer X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1716902113; l=798; i=bentiss@kernel.org; s=20230215; h=from:subject:message-id; bh=eowKlObErurap8texC0IeDebTUGtflcKm/yE3YPRDsM=; b=Ls5lwnz+jdJM1LWEGdDwN8HduhTcE/XsVVk3I0en9UjFVNudj1VbmZx8GyvMr768n45DRHogi pge7gg0uxd3DYz6If4EJeIPwRU1A0itz7C8bO30e4WJuYE1ZBLerFdz X-Developer-Key: i=bentiss@kernel.org; a=ed25519; pk=7D1DyAVh6ajCkuUTudt/chMuXWIJHlv2qCsRkIizvFw= warning: unused variable ‘tilt’ [-Wunused-variable] Signed-off-by: Peter Hutterer Signed-off-by: Benjamin Tissoires --- drivers/hid/bpf/progs/XPPen__Artist24.bpf.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/hid/bpf/progs/XPPen__Artist24.bpf.c b/drivers/hid/bpf/progs/XPPen__Artist24.bpf.c index bc0b85c38445..d4d062c3a653 100644 --- a/drivers/hid/bpf/progs/XPPen__Artist24.bpf.c +++ b/drivers/hid/bpf/progs/XPPen__Artist24.bpf.c @@ -158,7 +158,6 @@ int BPF_PROG(xppen_24_fix_eraser, struct hid_bpf_ctx *hctx) __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, 10 /* size */); __u8 current_state, changed_state; bool prev_tip; - __u16 tilt; if (!data) return 0; /* EPERM check */ -- 2.44.0