diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2024-04-07 10:28:04 +0800 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.com> | 2024-04-12 13:38:45 +0200 |
commit | 7e642aef8937dda15ad95e42418d85e73c76b47d (patch) | |
tree | efdc829032533b47f483b59fce6c1ec78a9330d7 /drivers/hid/hid-winwing.c | |
parent | 266c990debad2f9589c7a412e897a8e312b09766 (diff) |
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: 266c990debad2 ("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>
Diffstat (limited to 'drivers/hid/hid-winwing.c')
-rw-r--r-- | drivers/hid/hid-winwing.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/hid/hid-winwing.c b/drivers/hid/hid-winwing.c index d895c82a541d..0e224d1a6466 100644 --- a/drivers/hid/hid-winwing.c +++ b/drivers/hid/hid-winwing.c @@ -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; } |