提交 dbcbabf7 编写于 作者: Y YueHaibing 提交者: Benjamin Tissoires

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: 74808f91 ("HID: logitech-dj: add support for non unifying receivers")
Signed-off-by: NYueHaibing <yuehaibing@huawei.com>
Reviewed-by: NHans de Goede <hdegoede@redhat.com>
Signed-off-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
上级 a96a8a57
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册