git: 92ec9782ac97 - main - hpen_battery_strenght_cb: eliminate write only data variable

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 05 Apr 2022 04:32:16 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=92ec9782ac9739df8967acaaee114a68e134d8ee

commit 92ec9782ac9739df8967acaaee114a68e134d8ee
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-04-05 00:04:38 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
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: