diff options
Diffstat (limited to 'drivers/hid/hid-lgff.c')
| -rw-r--r-- | drivers/hid/hid-lgff.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/hid/hid-lgff.c b/drivers/hid/hid-lgff.c index 56099709581c..987abebe0829 100644 --- a/drivers/hid/hid-lgff.c +++ b/drivers/hid/hid-lgff.c | |||
| @@ -67,6 +67,7 @@ static const struct dev_type devices[] = { | |||
| 67 | { 0x046d, 0xc219, ff_rumble }, | 67 | { 0x046d, 0xc219, ff_rumble }, |
| 68 | { 0x046d, 0xc283, ff_joystick }, | 68 | { 0x046d, 0xc283, ff_joystick }, |
| 69 | { 0x046d, 0xc286, ff_joystick_ac }, | 69 | { 0x046d, 0xc286, ff_joystick_ac }, |
| 70 | { 0x046d, 0xc293, ff_joystick }, | ||
| 70 | { 0x046d, 0xc294, ff_wheel }, | 71 | { 0x046d, 0xc294, ff_wheel }, |
| 71 | { 0x046d, 0xc295, ff_joystick }, | 72 | { 0x046d, 0xc295, ff_joystick }, |
| 72 | { 0x046d, 0xca03, ff_wheel }, | 73 | { 0x046d, 0xca03, ff_wheel }, |
| @@ -150,11 +151,6 @@ int lgff_init(struct hid_device* hid) | |||
| 150 | 151 | ||
| 151 | /* Check that the report looks ok */ | 152 | /* Check that the report looks ok */ |
| 152 | report = list_entry(report_list->next, struct hid_report, list); | 153 | report = list_entry(report_list->next, struct hid_report, list); |
| 153 | if (!report) { | ||
| 154 | err_hid("NULL output report"); | ||
| 155 | return -1; | ||
| 156 | } | ||
| 157 | |||
| 158 | field = report->field[0]; | 154 | field = report->field[0]; |
| 159 | if (!field) { | 155 | if (!field) { |
| 160 | err_hid("NULL field"); | 156 | err_hid("NULL field"); |
