Use type directly in sizeof instead of a dereferenced pointer
[lttng-tools.git] / src / bin / lttng-sessiond / agent.c
index 7aaefdff28db06d6102a79476f3af05d33c64d57..0f61a75d612c0d927b7721edc6ff3b0f0867e6d5 100644 (file)
@@ -789,9 +789,7 @@ void agent_add(struct agent *agt, struct lttng_ht *ht)
 
        DBG3("Agent adding from domain %d", agt->domain);
 
-       rcu_read_lock();
        lttng_ht_add_unique_u64(ht, &agt->node);
-       rcu_read_unlock();
 }
 
 /*
@@ -804,7 +802,7 @@ struct agent *agent_create(enum lttng_domain_type domain)
        int ret;
        struct agent *agt;
 
-       agt = zmalloc(sizeof(*agt));
+       agt = zmalloc(sizeof(struct agent));
        if (!agt) {
                goto error;
        }
This page took 0.025313 seconds and 4 git commands to generate.