mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
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:
parent
266c990deb
commit
7e642aef89
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user