mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "wigig_sensing: fix usage of wait_event_interruptible_timeout()"
This commit is contained in:
commit
e908b225bb
1 changed files with 4 additions and 2 deletions
|
|
@ -563,12 +563,14 @@ static int wigig_sensing_ioc_change_mode(struct wigig_sensing_ctx *ctx,
|
|||
pr_err("wait_event_interruptible_timeout() interrupted by a signal (%d)\n",
|
||||
rc);
|
||||
goto End;
|
||||
}
|
||||
if (rc == 0) {
|
||||
} else if (rc == 0) {
|
||||
/* Timeout, FW did not respond in time */
|
||||
pr_err("wait_event_interruptible_timeout() timed out\n");
|
||||
rc = -ETIME;
|
||||
goto End;
|
||||
} else {
|
||||
/* rc > 0, this is fine, set rc to 0 */
|
||||
rc = 0;
|
||||
}
|
||||
|
||||
if (ctx->stm.state != ctx->stm.state_request) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue