summaryrefslogtreecommitdiff
path: root/lib/agentx.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-07-08 16:14:13 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-07-19 13:54:10 -0400
commita0d46bcd086b150dc9a193c8307b1c0e6e643852 (patch)
tree54cd43ad95352ef7e6e12a787e13c0485408d6b2 /lib/agentx.c
parent6ceca15dd16edb4045494df72ed967d6c13397e2 (diff)
lib: thread pointer is already null at this point
in agentx_events_update the timeout_thr is canceled on line 88 just above. This already sets the pointer to NULL. No need to do this again. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/agentx.c')
-rw-r--r--lib/agentx.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/agentx.c b/lib/agentx.c
index 821c573fb2..e03e19aad5 100644
--- a/lib/agentx.c
+++ b/lib/agentx.c
@@ -118,7 +118,6 @@ static void agentx_events_update(void)
snmp_select_info(&maxfd, &fds, &timeout, &block);
if (!block) {
- timeout_thr = NULL;
thread_add_timer_tv(agentx_tm, agentx_timeout, NULL, &timeout,
&timeout_thr);
}