diff options
author | Jiri Slaby <jslaby@suse.cz> | 2013-04-04 16:32:12 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-04-04 18:37:02 -0400 |
commit | 3a7f134f3061c242659a92fd8ddcfe53aaeaec22 (patch) | |
tree | 6eec846b5b07706485f06de00fa6c31ccdcf844c /drivers/hid | |
parent | f37130533f68711fd6bae2c79950b8e72002bad6 (diff) |
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: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-lenovo-tpkbd.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/hid/hid-lenovo-tpkbd.c b/drivers/hid/hid-lenovo-tpkbd.c index 956c3b135f64..c842ece2be37 100644 --- a/drivers/hid/hid-lenovo-tpkbd.c +++ b/drivers/hid/hid-lenovo-tpkbd.c | |||
@@ -228,8 +228,6 @@ static ssize_t pointer_press_speed_show(struct device *dev, | |||
228 | struct hid_device *hdev = container_of(dev, struct hid_device, dev); | 228 | struct hid_device *hdev = container_of(dev, struct hid_device, dev); |
229 | struct tpkbd_data_pointer *data_pointer = hid_get_drvdata(hdev); | 229 | struct tpkbd_data_pointer *data_pointer = hid_get_drvdata(hdev); |
230 | 230 | ||
231 | data_pointer = hid_get_drvdata(hdev); | ||
232 | |||
233 | return snprintf(buf, PAGE_SIZE, "%u\n", | 231 | return snprintf(buf, PAGE_SIZE, "%u\n", |
234 | data_pointer->press_speed); | 232 | data_pointer->press_speed); |
235 | } | 233 | } |