Merge "lmdk: Remove redundant 'if' check" am: 6cb668b992
am: 164ea570b3 Change-Id: Idb3f3a4aa875909eacc48e03717f170e560261c0
This commit is contained in:
commit
673f2f9632
8
lmkd.c
8
lmkd.c
|
|
@ -1924,11 +1924,9 @@ static void mainloop(void) {
|
||||||
|
|
||||||
clock_gettime(CLOCK_MONOTONIC_COARSE, &curr_tm);
|
clock_gettime(CLOCK_MONOTONIC_COARSE, &curr_tm);
|
||||||
if (get_time_diff_ms(&last_report_tm, &curr_tm) >= PSI_POLL_PERIOD_MS) {
|
if (get_time_diff_ms(&last_report_tm, &curr_tm) >= PSI_POLL_PERIOD_MS) {
|
||||||
if (polling) {
|
polling--;
|
||||||
polling--;
|
poll_handler->handler(poll_handler->data, 0);
|
||||||
poll_handler->handler(poll_handler->data, 0);
|
last_report_tm = curr_tm;
|
||||||
last_report_tm = curr_tm;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* Wait for events with no timeout */
|
/* Wait for events with no timeout */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue