Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1533344lqt; Sat, 8 Jun 2024 02:10:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUwv4H/DK2BwimDobRZ8jwz/PjdOX5MbH0aXeqPK00BNvC3iZUV5RSFftieGU+kE+wDo9I5JfGTVmsU+RvAczy1UO5bJSuCv25O3xAJgQ== X-Google-Smtp-Source: AGHT+IFw06qAv1/jKricIT9bXT4/xFuw9+kV11VSQOB/Ly+eZiIquCvZzQC29vpLgnVS5RpuDSBL X-Received: by 2002:a05:6a21:33a9:b0:1b4:da55:e1be with SMTP id adf61e73a8af0-1b4da55e367mr2712647637.14.1717837809896; Sat, 08 Jun 2024 02:10:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717837809; cv=pass; d=google.com; s=arc-20160816; b=sgFCYgIcDIrOtfPHPN3VP1C24exhARJ5e/24lkuyKTpds/eEkmHhd6Fco0RegTA9w8 vBEhiOg3IG2ZqPec0xOgZomTb8/DhFcgtIiQfABdf1KSeURTyT6CDn6yK0riLsC93Joh wjuTSvwHbO2wUKdXMUhTMPa6Iz0sYONtYiWCYAT5b0EL/We+0g7x2j2x9aDu4bGxqRGc lLllfkzDhyHmksM9dno2mo3uHGF9MbwmnSgkd3v2gJ/w1FIGQR6Zmm5eI7x3esMcphof z7YkbRd3+5sXH9m6sDrLUZAjia4w6/E8DduuM/jqR4fvnz1r1qCXABTKeY5ZTa2/84OV +00A== 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=A486m4LURAyvCdIG4Wej0C4ZNy8KOQweJ+YbVLl5ALA=; fh=GHislm9NjheIzAtmFXE9wjIiJoQITOj4lgcgXUd2vD4=; b=JqTj+himREfrVNuO9ps67wE5P9rdWtCIrByHdjjI1Khtp1O8RQ0b1KDPCareeMi/pi okUQJkHjVr6NYQf2FGatsSs6PZcHLmE3LrbwhbFFoI8Wl6+yuBSJKLU0OSeuZ/+dJJhg dNyc4O3idzZ3OWh75fSgx9/1264lBUnr/FgiEhIShmenueqJm0RXA8+k43Hl9j+4LDoI TsNfEDOuhtz0MxQRFRuSYRAbmNGxTIG30QeRPuAle6yO6S5RLQmGEk0sUAZfZf5zsfvG 7o3CnubQbQEl9ODCtKLY4T7T4Ldaa50oIm39ZFTMcVxR/kb7AOMzEWyQPQEwckvZamHU cdUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hURxL6Y2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206976-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206976-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c2d2b2c019si42330a91.6.2024.06.08.02.10.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jun 2024 02:10:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206976-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hURxL6Y2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206976-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206976-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9720DB227DB for ; Sat, 8 Jun 2024 09:05:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2874317C7D1; Sat, 8 Jun 2024 09:01:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hURxL6Y2" 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 4078B17C7AE; Sat, 8 Jun 2024 09:01:49 +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=1717837310; cv=none; b=tMpzryp15xPA4i0QSMYJXJeWQ9UMX1NH6kPRcxd9LJI9nfV14RPl1xK73RA0Axq6bB2T40v4MxVKFkAVCzEyg+3rB1rbrn9FTcKpgiMOtyMUbNdUX/5B/AEHDolWfkqRtXeKIvs7mPcUH5wgu07kq4jbmHOBQEDDYGZEAbce2PI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717837310; c=relaxed/simple; bh=L4CYU4n+T+6E8bgHr6bJqE2mTuITTQLAF8wrCeVIKd4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Z7DMcjB3CNaLdF7YJGkGvs/U92TNuG0bH6o9WpZJu/2JLhdw1NMon+dxh5LSJP3nTz/xu4M9AVorAPSl+8b8iJkHdoTiJCn5kzkiE6FZf22DYFWLvGt+FNLVccKzYzGlFalLzp0v5GSKh56GDNwU7aUB1Q8zPqqDO4RTw6kMnrQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hURxL6Y2; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDF3BC4AF09; Sat, 8 Jun 2024 09:01:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717837309; bh=L4CYU4n+T+6E8bgHr6bJqE2mTuITTQLAF8wrCeVIKd4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=hURxL6Y2YzJLFkBryk39+BRq0xjbHHfoNsqDV+8gIcNMJEeQBp3h+HxdmF5sRIWWs BjPkEPX1yxcQr3puxh2p2QJQEX+F2TH/9M8MMVuYBOPxcvRiygdZyBt6YpjjqNqOxc duBmQ93OwBSKpWTl4OqSD8RvURj2GRtldNeRVeSrWqN9KqyqIa2S/13WaYY84KpGfG kfxtU6blcHFvZzYVM3tRm5JhSUGtIub6uSSRhKxKE+qkMuI7jCEKp6XYKIDqqv8V/Z 4YkC/7ZNoOHhB8HaqUn+JMTAFRI5GYke64U2VXb/gVXxGkKuueWXnCQegzX7jdyhCF LZxK5Ft2FACMw== From: Benjamin Tissoires Date: Sat, 08 Jun 2024 11:01:24 +0200 Subject: [PATCH HID v3 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: <20240608-hid_bpf_struct_ops-v3-12-6ac6ade58329@kernel.org> References: <20240608-hid_bpf_struct_ops-v3-0-6ac6ade58329@kernel.org> In-Reply-To: <20240608-hid_bpf_struct_ops-v3-0-6ac6ade58329@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=1717837279; l=845; i=bentiss@kernel.org; s=20230215; h=from:subject:message-id; bh=L4CYU4n+T+6E8bgHr6bJqE2mTuITTQLAF8wrCeVIKd4=; b=fckHWugzyfy+gR4/x05n4t1rKyJFCApWnbtapRom03hX/4BB38MXmaqMkKdt3Akb6q0D8KpCn 3X6yLewsqT1DrDKbQtqKAiQuLErMkYyuO8LqmEEVUz0okULythft8+n 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 v3 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