Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5670fabb authored by Greg Kaiser's avatar Greg Kaiser
Browse files

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
parent d11c6f7f
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;
        }
        break;
    case POLLING_STOP:
        poll_params->poll_handler = NULL;