Loading drivers/misc/wigig_sensing.c +4 −2 Original line number Original line Diff line number Diff line Loading @@ -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", pr_err("wait_event_interruptible_timeout() interrupted by a signal (%d)\n", rc); rc); goto End; goto End; } } else if (rc == 0) { if (rc == 0) { /* Timeout, FW did not respond in time */ /* Timeout, FW did not respond in time */ pr_err("wait_event_interruptible_timeout() timed out\n"); pr_err("wait_event_interruptible_timeout() timed out\n"); rc = -ETIME; rc = -ETIME; goto End; goto End; } else { /* rc > 0, this is fine, set rc to 0 */ rc = 0; } } if (ctx->stm.state != ctx->stm.state_request) { if (ctx->stm.state != ctx->stm.state_request) { Loading Loading
drivers/misc/wigig_sensing.c +4 −2 Original line number Original line Diff line number Diff line Loading @@ -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", pr_err("wait_event_interruptible_timeout() interrupted by a signal (%d)\n", rc); rc); goto End; goto End; } } else if (rc == 0) { if (rc == 0) { /* Timeout, FW did not respond in time */ /* Timeout, FW did not respond in time */ pr_err("wait_event_interruptible_timeout() timed out\n"); pr_err("wait_event_interruptible_timeout() timed out\n"); rc = -ETIME; rc = -ETIME; goto End; goto End; } else { /* rc > 0, this is fine, set rc to 0 */ rc = 0; } } if (ctx->stm.state != ctx->stm.state_request) { if (ctx->stm.state != ctx->stm.state_request) { Loading