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:
parent
a10157c0d3
commit
5e80ed5ff6
4
lmkd.c
4
lmkd.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue