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 | f37130533f68711fd6bae2c79950b8e72002bad6 (diff) | |
download | op-kernel-dev-3a7f134f3061c242659a92fd8ddcfe53aaeaec22.zip op-kernel-dev-3a7f134f3061c242659a92fd8ddcfe53aaeaec22.tar.gz |
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 956c3b1..c842ece2 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); } |