From nobody Tue Apr 05 04:32:16 2022 X-Original-To: dev-commits-src-all@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 DA8871A9065D; Tue, 5 Apr 2022 04:32:17 +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 4KXZVm718hz4g5x; Tue, 5 Apr 2022 04:32:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133137; 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=CGCOMP2OM1U+7mW4EoOkoAX9iUsr+vSsKzkf0nDii9g=; b=Tnq1FyKfzMruL6FJL4DScyn4vvEW3/u6PfpE/Q3IlkPu6sRROUwX8iWMAVktqQQquOsEoK uAi1yyF4D+KgYFUGHyfs2sHu0Pv0NkjFlyxTB1yWZw48p5a29hyZHDdyRxH6Q34KVvidUT bplO/q5RpvCWrAww3PMr6TmYxw97cUov5rX+PpjG6zmx3IVRpmf688mMUMxkAyChcQtgeg yXsD6x5mP0iNBt/ciTq5NWpOXx8fJ7BXbx3Um3t5YutlOZp1Bfcb7Gi0eS3UFSIQ9mi23B bLrRghsyZyrn+haSaY98XSqkQfNIkt7o6m/cQfjhvyS2g4xw6wbjDp+QPa3GsQ== 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 885781FDB3; Tue, 5 Apr 2022 04:32:16 +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 2354WGYd008779; Tue, 5 Apr 2022 04:32:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2354WGhZ008778; Tue, 5 Apr 2022 04:32:16 GMT (envelope-from git) Date: Tue, 5 Apr 2022 04:32:16 GMT Message-Id: <202204050432.2354WGhZ008778@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 92ec9782ac97 - main - hpen_battery_strenght_cb: eliminate write only data variable List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/main X-Git-Reftype: branch X-Git-Commit: 92ec9782ac9739df8967acaaee114a68e134d8ee Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133137; 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=CGCOMP2OM1U+7mW4EoOkoAX9iUsr+vSsKzkf0nDii9g=; b=cV9Cm+xs4bG1vymtgo+6U/3LtRDZTROhzYfOvypv1QE9WUiEa5waNivh/DpMWppsdyMfVd 1faIErdNMiS0LuIMhQYgBBMFE4ghmpvIxiNb+r/SKLLNgofwXAjEkZ+sONRG3Hp09IDzh4 5QzEX1NckJrqT63v9DBInJxys//a64uN5FV+bG/feFmQ55ebpEVBiqWpc1ixUg0+amz7Hi g6wzT4RZFA/5LpHw+KRQBCDspToM2Oi5N5OYr6+ZCUBxSswTorl+2pAQCxIu+dlAY6AFpL dY6c1PDiE394u3VwUV9l3iOUTXiN7IbfhzD4I7NW8FD6U+7hDd5oTYN4qbrfGQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649133137; a=rsa-sha256; cv=none; b=RqU/mRgcllj8lIUr35vOlYuIX3VuTBWkNs7CgaieGbEB/s6nNSsyoMfBnmttyxSir0mKEi V1Dd7ov4cpoBg474Y3d4wL5r8EjV0wFErWwJyG7ZtmCF0sR7UXV+Tsv5V28L09dayYqz0p gtUu79fxHCEwenf/QLLwsSOXCZ2HAOBb/tvfUqwiwc2CRhxE24CblAhaZyBFuvZEwXrz7s 0DtEwcu8MNkVSQ0WZLW//A+zToay1a0kEfAzTxlNl4Ih7JF0Y5e/xkuchb/OqDEoPDaeXM wwLurlGpnB7Lp6MhLa5EYy5j3ItFZxc7SsP9jzJP5iPoHbEWD9BrJyG1L/bHvA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=92ec9782ac9739df8967acaaee114a68e134d8ee commit 92ec9782ac9739df8967acaaee114a68e134d8ee Author: Warner Losh AuthorDate: 2022-04-05 00:04:38 +0000 Commit: Warner Losh CommitDate: 2022-04-05 04:29:31 +0000 hpen_battery_strenght_cb: eliminate write only data variable Sponsored by: Netflix --- 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: