Merge "lmdk: Remove redundant 'if' check" am: 6cb668b992 am: 164ea570b3
am: 6aec0d1491 Change-Id: Ibeb8d778575e30d0672b0d7034f1ec2c4a36bb09
This commit is contained in:
commit
3639a3b7d4
2
lmkd.c
2
lmkd.c
|
|
@ -1969,12 +1969,10 @@ static void mainloop(void) {
|
|||
|
||||
clock_gettime(CLOCK_MONOTONIC_COARSE, &curr_tm);
|
||||
if (get_time_diff_ms(&last_report_tm, &curr_tm) >= PSI_POLL_PERIOD_MS) {
|
||||
if (polling) {
|
||||
polling--;
|
||||
poll_handler->handler(poll_handler->data, 0);
|
||||
last_report_tm = curr_tm;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
/* Wait for events with no timeout */
|
||||
nevents = epoll_wait(epollfd, events, maxevents, -1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue