summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-05-25 17:09:08 +0300
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>2019-06-11 11:52:13 +0300
commitdbcbabf7da921f98beefb4a6f4b91eb62d072076 (patch)
tree27dd2b5e802b2fb5cc9d165e9c7cf42575d2960f /drivers
parenta96a8a576bf5cc45534d0079d7006fc3fe25282b (diff)
downloadlinux-dbcbabf7da921f98beefb4a6f4b91eb62d072076.tar.xz
HID: logitech-dj: fix return value of logi_dj_recv_query_hidpp_devices
We should return 'retval' as the correct return value instead of always zero. Fixes: 74808f9115ce ("HID: logitech-dj: add support for non unifying receivers") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hid/hid-logitech-dj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-logitech-dj.c b/drivers/hid/hid-logitech-dj.c
index 1cbd898bbdc3..d644d5a815f0 100644
--- a/drivers/hid/hid-logitech-dj.c
+++ b/drivers/hid/hid-logitech-dj.c
@@ -1133,7 +1133,7 @@ static int logi_dj_recv_query_hidpp_devices(struct dj_receiver_dev *djrcv_dev)
HID_REQ_SET_REPORT);
kfree(hidpp_report);
- return 0;
+ return retval;
}
static int logi_dj_recv_query_paired_devices(struct dj_receiver_dev *djrcv_dev)