Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a7f134f authored by Jiri Slaby's avatar Jiri Slaby Committed by Jiri Kosina
Browse files

HID: hid-lenovo-tpkbd: remove doubled hid_get_drvdata



In pointer_press_speed_show, we do
    data_pointer = hid_get_drvdata(hdev);
twice in a row. Remove one of those.

Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent f3713053
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -228,8 +228,6 @@ static ssize_t pointer_press_speed_show(struct device *dev,
	struct hid_device *hdev = container_of(dev, struct hid_device, dev);
	struct tpkbd_data_pointer *data_pointer = hid_get_drvdata(hdev);

	data_pointer = hid_get_drvdata(hdev);

	return snprintf(buf, PAGE_SIZE, "%u\n",
		data_pointer->press_speed);
}