From 5670fabb94829abd041e75741e3955be1f3b8157 Mon Sep 17 00:00:00 2001 From: Greg Kaiser Date: Thu, 10 Oct 2019 06:52:23 -0700 Subject: [PATCH] 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 --- lmkd/lmkd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lmkd/lmkd.c b/lmkd/lmkd.c index e286877a6..9de7ff7b7 100644 --- a/lmkd/lmkd.c +++ b/lmkd/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;