mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-09 23:39:18 +00:00
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>
This commit is contained in:
parent
2ddf07f388
commit
205a2ab0c9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user