Skip to content

Commit 4c6a83f

Browse files
hadessJiri Kosina
authored andcommitted
HID: logitech-dj: Differentiate "invalid device index" error
We had 2 codepaths throwing the "invalid device index" error, but one of them was about the index not matching the receiver, so change the error to "invalid receiver index". Signed-off-by: Bastien Nocera <hadess@hadess.net> Signed-off-by: Jiri Kosina <jkosina@suse.com>
1 parent 8e4ac86 commit 4c6a83f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/hid/hid-logitech-dj.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1664,7 +1664,7 @@ static int logi_dj_dj_event(struct hid_device *hdev,
16641664
* so ignore those reports too.
16651665
*/
16661666
if (dj_report->device_index != DJ_RECEIVER_INDEX)
1667-
hid_err(hdev, "%s: invalid device index:%d\n",
1667+
hid_err(hdev, "%s: invalid receiver index:%d\n",
16681668
__func__, dj_report->device_index);
16691669
return false;
16701670
}

0 commit comments

Comments
 (0)