]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ldpd: redundant pointer operation (cppcheck)
authorpaco <paco@voltanet.io>
Mon, 18 Jun 2018 16:41:57 +0000 (18:41 +0200)
committerpaco <paco@voltanet.io>
Mon, 18 Jun 2018 16:41:57 +0000 (18:41 +0200)
Signed-off-by: F. Aragon <paco@voltanet.io>
ldpd/packet.c

index 4a4b258b91b1c416399838d9c6bcf7732c1cb683..b0f9c5eb14f8abadd7dcbf8129f6647610ff061d 100644 (file)
@@ -144,7 +144,7 @@ disc_recv_packet(struct thread *thread)
 
        /* reschedule read */
        *threadp = NULL;
-       thread_add_read(master, disc_recv_packet, threadp, fd, &*threadp);
+       thread_add_read(master, disc_recv_packet, threadp, fd, threadp);
 
        /* setup buffer */
        memset(&m, 0, sizeof(m));