From nobody Sun Oct 02 04:29:28 2022 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Mg9wT1gxgz4dt9J; Sun, 2 Oct 2022 04:29:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mg9wT13Zmz44FR; Sun, 2 Oct 2022 04:29:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664684969; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=su2OwgRTxImEQQjdeeuH+obufb6/nVZs8zqSzbDK31c=; b=FLl/TTBvxFaqCnYVE74JOPvwAk6P0JP4zF/Tzj/6Pr8w5ft035C9MJIi5HpMQPy1uvlVHQ Sqg+Sao1hn3ULFIl8uKNh/Kuo0tW8Db7RLXCwWcgK0fL061zzKqZSCUL2yRiJNbapSm8/p N0Cby9qY1V3h6ec5Zdw9Oy3RLw7g9jiFiDk7P7ESCGNsg3jp5qE72wQSAJEQWRfP4ueW6O 0I1nzE9navhbzmmni1IRgS+BM1cMC7FHfkG0QWJhsFO65rYWhJ0fFwJ/aLlraoPGxqaitD y3ghN9klKwGCfA2bJTGRtd0ENnAeL4E/j7fyzsBNq4b9nN16dlpD+9TCxEawDQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Mg9wT09YVzlYH; Sun, 2 Oct 2022 04:29:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2924TSNn058227; Sun, 2 Oct 2022 04:29:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2924TSJF058226; Sun, 2 Oct 2022 04:29:28 GMT (envelope-from git) Date: Sun, 2 Oct 2022 04:29:28 GMT Message-Id: <202210020429.2924TSJF058226@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: d4706e1fdf94 - stable/13 - hpen_battery_strenght_cb: eliminate write only data variable List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: d4706e1fdf944d32afdd0901c084e9f04bef834b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664684969; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=su2OwgRTxImEQQjdeeuH+obufb6/nVZs8zqSzbDK31c=; b=PIvFKrn0bF2bP1E0a9DGR3HeIG1sBE7NXw5OeW2cweb3ew/TIy+W4+B7PRCKICU9EQhyOj 25ZboGeJIUeZ4eW5lbZkDFgXmUpMGKtUy5k5MkVZqN2j4yILGeK8WReZLQ+DcVafDOqZhi vd7dvWUqQWUqrnaEJXiZbFi+mFyh0IzDfS71vm7czRqKkN+cg/rfhoYnTGzaMGtJ+HSQJu bFOXyFWKw4jQvyl9iI4wHwi3Sxd2I/anx5+/8xHxCDtfeEE3rYmzW3tjs6E09ppq2IFn3A HDNLqpe21gJaFdDe/iax0J5mc4jkKYtnucHPZUimcec1NgSepRTE3mqGEiIkqA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664684969; a=rsa-sha256; cv=none; b=Ju/hUFdA9QsuURCXP02OqqjhOZWYUhNdG7c+avb1Co1/kXcvU9ZLP4g5u3USSvUxs935Ce 1mqq8yiNkmD5ETh8O5vKqRCynjITgmGeIccNhId+XcJqWQ2xS7cf4T3GCwY4GXuYNRUyvp 0hXhtsmqTNd2uKuBVcRGFF6h4bgqBgk12k8Ie6BNefN8tGIOzzanFMB8j1F+VLp8wwy/Uf imxqqUXdIq8bcF0jpY//gnS/BbLEBmXXCqBtCaGTEy7sND/pMdD3e2bbLyhNv/YaHaKvYG zd/enELIM2Jq3RV1F9PvW/9Luavh5EfeIB9xYZO+v9fYO+hZ+OqddkQBKmJrEQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=d4706e1fdf944d32afdd0901c084e9f04bef834b commit d4706e1fdf944d32afdd0901c084e9f04bef834b Author: Warner Losh AuthorDate: 2022-07-08 17:53:30 +0000 Commit: Warner Losh CommitDate: 2022-10-02 04:25:52 +0000 hpen_battery_strenght_cb: eliminate write only data variable Sponsored by: Netflix (cherry picked from commit 92ec9782ac9739df8967acaaee114a68e134d8ee) --- sys/dev/hid/hpen.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/dev/hid/hpen.c b/sys/dev/hid/hpen.c index 21a5e28a9827..7fed4e193016 100644 --- a/sys/dev/hid/hpen.c +++ b/sys/dev/hid/hpen.c @@ -114,7 +114,6 @@ static int hpen_battery_strenght_cb(HIDMAP_CB_ARGS) { struct evdev_dev *evdev = HIDMAP_CB_GET_EVDEV(); - int32_t data; switch (HIDMAP_CB_GET_STATE()) { case HIDMAP_CB_IS_ATTACHING: @@ -122,7 +121,6 @@ hpen_battery_strenght_cb(HIDMAP_CB_ARGS) /* TODO */ break; case HIDMAP_CB_IS_RUNNING: - data = ctx.data; /* TODO */ break; default: