Skip to content

Commit 7e642ae

Browse files
Jiapeng ChongJiri Kosina
authored andcommitted
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: 266c990 ("HID: Add WinWing Orion2 throttle support") Reported-by: Abaci Robot <[email protected]> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8705 Signed-off-by: Jiapeng Chong <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 266c990 commit 7e642ae

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/hid/hid-winwing.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ static int winwing_init_led(struct hid_device *hdev,
120120
static int winwing_probe(struct hid_device *hdev,
121121
const struct hid_device_id *id)
122122
{
123-
unsigned int minor;
124123
int ret;
125124

126125
ret = hid_parse(hdev);
@@ -135,8 +134,6 @@ static int winwing_probe(struct hid_device *hdev,
135134
return ret;
136135
}
137136

138-
minor = ((struct hidraw *) hdev->hidraw)->minor;
139-
140137
return 0;
141138
}
142139

0 commit comments

Comments
 (0)