diff options
| author | Benjamin Tissoires <[email protected]> | 2023-07-12 17:02:34 +0200 |
|---|---|---|
| committer | Benjamin Tissoires <[email protected]> | 2023-08-25 10:40:32 +0200 |
| commit | 60165ab774cb0c509680a73cf826d0e158454653 (patch) | |
| tree | 80e1248b3cff463f8b7542299054fa4a7f932713 /tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c | |
| parent | 6f20d3261265885f6a6be4cda49d7019728760e0 (diff) | |
HID: logitech-hidpp: rework one more time the retries attempts
Extract the internal code inside a helper function, fix the
initialization of the parameters used in the helper function
(`hidpp->answer_available` was not reset and `*response` wasn't either),
and use a `do {...} while();` loop.
Fixes: 586e8fede795 ("HID: logitech-hidpp: Retry commands when device is busy")
Cc: [email protected]
Reviewed-by: Bastien Nocera <[email protected]>
Signed-off-by: Benjamin Tissoires <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Benjamin Tissoires <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c')
0 files changed, 0 insertions, 0 deletions