1
0
Fork 0

HID: logitech-hidpp: remove double assignment from __hidpp_send_report

The hidpp variable is already initialized with hid_get_drvdata(hdev)
when it is declared, drop the second no-op assignment.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
hifive-unleashed-5.2
Hans de Goede 2019-04-20 13:22:08 +02:00 committed by Benjamin Tissoires
parent 2ddf07f388
commit 205a2ab0c9
1 changed files with 0 additions and 2 deletions

View File

@ -206,8 +206,6 @@ static int __hidpp_send_report(struct hid_device *hdev,
struct hidpp_device *hidpp = hid_get_drvdata(hdev);
int fields_count, ret;
hidpp = hid_get_drvdata(hdev);
switch (hidpp_report->report_id) {
case REPORT_ID_HIDPP_SHORT:
fields_count = HIDPP_REPORT_SHORT_LENGTH;