HID: winwing: Remove unused variable 'minor'

Variable minor is not effectively used, so delete it.

drivers/hid/hid-winwing.c:123:15: warning: variable 'minor' set but not used.

Fixes: 266c990deb ("HID: Add WinWing Orion2 throttle support")
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8705
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
This commit is contained in:
Jiapeng Chong 2024-04-07 10:28:04 +08:00 committed by Jiri Kosina
parent 266c990deb
commit 7e642aef89

View File

@ -120,7 +120,6 @@ static int winwing_init_led(struct hid_device *hdev,
static int winwing_probe(struct hid_device *hdev,
const struct hid_device_id *id)
{
unsigned int minor;
int ret;
ret = hid_parse(hdev);
@ -135,8 +134,6 @@ static int winwing_probe(struct hid_device *hdev,
return ret;
}
minor = ((struct hidraw *) hdev->hidraw)->minor;
return 0;
}