HID: winwing: Remove unused variable 'minor'
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Sun, 7 Apr 2024 02:28:04 +0000 (10:28 +0800)
committerJiri Kosina <jkosina@suse.com>
Fri, 12 Apr 2024 11:38:45 +0000 (13:38 +0200)
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>
drivers/hid/hid-winwing.c

index d895c82a541da801b0618e52c27bcb98f5f74b51..0e224d1a64660fd0b64a0a9c05ac0a2567d16773 100644 (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;
 }