|
@@ -114,7 +114,7 @@ static int tpm_set_next_event(unsigned long delta,
|
|
* of writing CNT registers which may cause the min_delta event got
|
|
* of writing CNT registers which may cause the min_delta event got
|
|
* missed, so we need add a ETIME check here in case it happened.
|
|
* missed, so we need add a ETIME check here in case it happened.
|
|
*/
|
|
*/
|
|
- return (int)((next - now) <= 0) ? -ETIME : 0;
|
|
|
|
|
|
+ return (int)(next - now) <= 0 ? -ETIME : 0;
|
|
}
|
|
}
|
|
|
|
|
|
static int tpm_set_state_oneshot(struct clock_event_device *evt)
|
|
static int tpm_set_state_oneshot(struct clock_event_device *evt)
|