diff options
author | Jiri Slaby <jslaby@suse.cz> | 2013-04-04 22:32:12 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-04-05 00:37:02 +0200 |
commit | 3a7f134f3061c242659a92fd8ddcfe53aaeaec22 (patch) | |
tree | 6eec846b5b07706485f06de00fa6c31ccdcf844c /drivers/hid | |
parent | HID: hidraw: warn if userspace headers are outdated (diff) | |
download | linux-3a7f134f3061c242659a92fd8ddcfe53aaeaec22.tar.xz linux-3a7f134f3061c242659a92fd8ddcfe53aaeaec22.zip |
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, 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); } |