Commit 7e642aef authored by Jiapeng Chong's avatar Jiapeng Chong Committed by Jiri Kosina

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: 266c990d ("HID: Add WinWing Orion2 throttle support")
Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8705Signed-off-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
parent 266c990d
...@@ -120,7 +120,6 @@ static int winwing_init_led(struct hid_device *hdev, ...@@ -120,7 +120,6 @@ static int winwing_init_led(struct hid_device *hdev,
static int winwing_probe(struct hid_device *hdev, static int winwing_probe(struct hid_device *hdev,
const struct hid_device_id *id) const struct hid_device_id *id)
{ {
unsigned int minor;
int ret; int ret;
ret = hid_parse(hdev); ret = hid_parse(hdev);
...@@ -135,8 +134,6 @@ static int winwing_probe(struct hid_device *hdev, ...@@ -135,8 +134,6 @@ static int winwing_probe(struct hid_device *hdev,
return ret; return ret;
} }
minor = ((struct hidraw *) hdev->hidraw)->minor;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment