mirror of https://github.com/torvalds/linux.git
timed_wait_for_timeout() internally checks for ish_is_input_ready() and
ishtp_fw_is_ready() based on the provided parameters. If
timed_wait_for_timeout() returns 0, it indicates the status is ready. In
rare cases, another thread may send a message immediately after
timed_wait_for_timeout() returns, causing a subsequent ish_is_input_ready()
check to fail. Since the return value of timed_wait_for_timeout() is
sufficient to determine readiness, the additional ready check is
unnecessary and may introduce issues.
This patch removes the redundant check and relies solely on the return
value of timed_wait_for_timeout().
Fixes:
|
||
|---|---|---|
| .. | ||
| ipc | ||
| ishtp | ||
| Kconfig | ||
| Makefile | ||
| ishtp-fw-loader.c | ||
| ishtp-hid-client.c | ||
| ishtp-hid.c | ||
| ishtp-hid.h | ||