Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1124863lqt; Fri, 7 Jun 2024 08:38:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVm9mpRX1p9Fe9MHvdMs289K/X43Az82wmhJSmmabd0Ode0BxPoTKDBZBHk7sH69mCtevMWP5j96C4goq3nkdjgYtOQLtvtbRLapXXGZQ== X-Google-Smtp-Source: AGHT+IFzOhEREUn0k4hCXphbl+LC1PTs125sJiCYDVD6KrlDINlD6EULAYDSC/LG52IhMYm0f3pV X-Received: by 2002:a05:6358:921d:b0:199:2a87:c5a with SMTP id e5c5f4694b2df-19f1fd15a52mr372105855d.12.1717774728326; Fri, 07 Jun 2024 08:38:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717774728; cv=pass; d=google.com; s=arc-20160816; b=sOgsYwAOt233xKyDyE1R7+xj6EjwkVFRBlk5kUgFONHimjVqHqJwfBXda/7BQrbR03 wdeT8XMIB9if17XOn/ZgohWAQcLkLwu6z8mO/spIFReHIAIueaMHRPqCy4bDaZbutLV7 BXqI3ZQcwSWVji25W6Lm0GVOG6Ve9dx0zui2z6MHQvW5BW23jp9jQKAb8c98tG6Wd6S7 RCO3QgupRy69vvSY3FIlzd4HHy59hFJYWnN/FALYDw9E2y0En0p7AIOCBNAeVE+W6t7E xDJoUDxvEgT+3lavh9+qHaGsmg7wX61yu1PYlq0sqVR60Il3xWIKD7iLUBIyzMuqIG5W lwGA== 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=wQoEvxIsX3zl3IXXYPjZVAQ6qnGJrRC6fvhZRAiybdU=; fh=GHislm9NjheIzAtmFXE9wjIiJoQITOj4lgcgXUd2vD4=; b=gIHsC1Td4I4a9Ty1DV6jFKNGQr/slAuvC4sLnm8ORnelJB95iw0yijxdRfEZjdIsYj P6NNZMoUAqob2qq4RCO3hs6dopc0LQt6dc7dA0/v5YO7APOApp9oYYVGWaY0IhoOaIUi yLW+QC6hmcq7r2j/qTMpXHjBPp9J/g6fepQpNNu7IE+so6xTtR9QzqV/ExEyhnzXXWTU T5nRNUmtiffNRB3JWSOBepJQK2KBqE7wACNGk91tVx03iYxUeM8qh1WFrf70dh25oy6h yVactpDBpOHrmmZEyKSu9gXDcgXcf3y8pC6b2NX3xPzgSqxeiUpNRYQruKTYL+8To3a9 WESw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mmq5Pl0C; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206403-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206403-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 41be03b00d2f7-6de2895b873si3238788a12.640.2024.06.07.08.38.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 08:38:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206403-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=mmq5Pl0C; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206403-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206403-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 98C8928BB0E for ; Fri, 7 Jun 2024 15:32:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E980F19E7C9; Fri, 7 Jun 2024 15:29:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mmq5Pl0C" 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 0AC1F19E7D8; Fri, 7 Jun 2024 15:29:00 +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=1717774141; cv=none; b=kXHywN5eZflyJF8UUyXzJkjjxRI8YeGeRkeA5yxrvP8mlsHx8B2yn1vNGCg+hoICkmYM8VSW0RCLg5KM4kIzYONgRLBiI0YTczUuZwEjJOj5EOACgMsquTJAIMbvH/NU+8uT3oG0sYMFkQFf2RS/KEE7WBBLxv7PSgVoKCJfqsY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717774141; c=relaxed/simple; bh=vVyzyvVkmRdnk5AZGhbemmG0KO/W4ktaONqcGrBO074=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tKvZZHyGWNgOXn+iTpTCCx1Yk/r4xbt8QfSScI5V6RfWUMcBB9++n5Xmh9Okk6iB25rPUtQQ0/O8dwM5BsxOw170MstpXR+ITCukQdlxn/OUErgX0Sk+ix/ZSj2sZCnM8+7geATmZx0MeZs5h1DFhgXxEuSTAzO72wfqB9BoqUs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mmq5Pl0C; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9288EC3277B; Fri, 7 Jun 2024 15:28:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717774140; bh=vVyzyvVkmRdnk5AZGhbemmG0KO/W4ktaONqcGrBO074=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=mmq5Pl0CYs1S5RHDdAnefKssxOniHC13gDSqGu4o7pplygYD4E62IuEwdyWOOH8sv M5Q6KOMg+MONaYPUtjOTx635Ln7avrhgkGXewKXJOlmiZDHha0XrCoPfEp6DHoDhqv 5hF98/j+sbCkzDCqnJfJGS6iqN6n6y75/DPgNCTdv5ZBOY6wkPiPLBBg2sIwuu6ML+ mgBMY2IWfzl+eAmrvvs9aOFjqxNtTox3Eobe5FTOJeIVC5kCOwOK7JIePzlw0CjLVi 4A9rHJUJxb6rhJqXL7mibVW/P17jHYYnOGmcngDsb4hyfLQI73GHmoe7NR3fuKMGI8 6hortFnuBfXTg== From: Benjamin Tissoires Date: Fri, 07 Jun 2024 17:28:32 +0200 Subject: [PATCH HID v2 12/16] 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: <20240607-hid_bpf_struct_ops-v2-12-3f95f4d02292@kernel.org> References: <20240607-hid_bpf_struct_ops-v2-0-3f95f4d02292@kernel.org> In-Reply-To: <20240607-hid_bpf_struct_ops-v2-0-3f95f4d02292@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=1717774109; l=825; i=bentiss@kernel.org; s=20230215; h=from:subject:message-id; bh=vVyzyvVkmRdnk5AZGhbemmG0KO/W4ktaONqcGrBO074=; b=ffmXnz8K3nBmqSxpppROlw4V0QAiXmc+E5EPEMZJQt6xuIG5e80oVk9NxvVt4A8StQr/3Gi6s uGngugEbwycC67gcQrkxt0hcfuDAhq1/2wUXIp+3ZEuGcLtvjOMnN8O 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 --- no changes in v2 --- 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