lmkd: Remove unnecessary conditional

We want poll_handler to be handler_info, so it's more efficient
to just unconditionally assign it.

Test: TreeHugger
Change-Id: I55b5164da1817ef77b5d455eb618f9a2471afc5c
This commit is contained in:
Greg Kaiser 2019-10-10 06:52:23 -07:00
parent a10157c0d3
commit 5e80ed5ff6
1 changed files with 1 additions and 3 deletions

4
lmkd.c
View File

@ -2743,9 +2743,7 @@ static void call_handler(struct event_handler_info* handler_info,
* at one per sec.
*/
poll_params->poll_start_tm = curr_tm;
if (poll_params->poll_handler != handler_info) {
poll_params->poll_handler = handler_info;
}
poll_params->poll_handler = handler_info;
break;
case POLLING_STOP:
poll_params->poll_handler = NULL;