git: d4706e1fdf94 - stable/13 - hpen_battery_strenght_cb: eliminate write only data variable

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sun, 02 Oct 2022 04:29:28 UTC
The branch stable/13 has been updated by imp:

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

commit d4706e1fdf944d32afdd0901c084e9f04bef834b
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-08 17:53:30 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
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: