Skip to content

Commit

Permalink
HID: logitech-dj: fix return value of logi_dj_recv_query_hidpp_devices
Browse files Browse the repository at this point in the history
We should return 'retval' as the correct return value
instead of always zero.

Fixes: 74808f9 ("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>
  • Loading branch information
YueHaibing authored and Benjamin Tissoires committed Jun 11, 2019
1 parent a96a8a5 commit dbcbabf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hid/hid-logitech-dj.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dbcbabf

Please sign in to comment.