summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-lenovo.c
diff options
context:
space:
mode:
authorJamie Lentin <jm@lentin.co.uk>2015-08-11 22:40:51 +0100
committerJiri Kosina <jkosina@suse.cz>2015-08-12 14:31:39 +0200
commitdbfebb44b7c650dd134a8be07f9afd5862150987 (patch)
tree0bc34276a65c1c5da6de6ca1778afb1e1cf9e679 /drivers/hid/hid-lenovo.c
parent7f65068fb77f173c5466545fc11818de7a35c1f3 (diff)
downloadlinux-dbfebb44b7c650dd134a8be07f9afd5862150987.tar.gz
linux-dbfebb44b7c650dd134a8be07f9afd5862150987.tar.bz2
linux-dbfebb44b7c650dd134a8be07f9afd5862150987.zip
HID: lenovo: Add missing return-value check
Signed-off-by: Jamie Lentin <jm@lentin.co.uk> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-lenovo.c')
-rw-r--r--drivers/hid/hid-lenovo.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/hid/hid-lenovo.c b/drivers/hid/hid-lenovo.c
index 680bb11dbdee..d40221d78188 100644
--- a/drivers/hid/hid-lenovo.c
+++ b/drivers/hid/hid-lenovo.c
@@ -207,9 +207,12 @@ static void lenovo_features_set_cptkbd(struct hid_device *hdev)
struct lenovo_drvdata_cptkbd *cptkbd_data = hid_get_drvdata(hdev);
ret = lenovo_send_cmd_cptkbd(hdev, 0x05, cptkbd_data->fn_lock);
- ret = lenovo_send_cmd_cptkbd(hdev, 0x02, cptkbd_data->sensitivity);
if (ret)
hid_err(hdev, "Fn-lock setting failed: %d\n", ret);
+
+ ret = lenovo_send_cmd_cptkbd(hdev, 0x02, cptkbd_data->sensitivity);
+ if (ret)
+ hid_err(hdev, "Sensitivity setting failed: %d\n", ret);
}
static ssize_t attr_fn_lock_show_cptkbd(struct device *dev,