Commit 205a2ab0 authored by Hans de Goede's avatar Hans de Goede Committed by Benjamin Tissoires
Browse files

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: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
parent 2ddf07f3
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -206,8 +206,6 @@ static int __hidpp_send_report(struct hid_device *hdev,
	struct hidpp_device *hidpp = hid_get_drvdata(hdev);
	struct hidpp_device *hidpp = hid_get_drvdata(hdev);
	int fields_count, ret;
	int fields_count, ret;


	hidpp = hid_get_drvdata(hdev);

	switch (hidpp_report->report_id) {
	switch (hidpp_report->report_id) {
	case REPORT_ID_HIDPP_SHORT:
	case REPORT_ID_HIDPP_SHORT:
		fields_count = HIDPP_REPORT_SHORT_LENGTH;
		fields_count = HIDPP_REPORT_SHORT_LENGTH;