summaryrefslogtreecommitdiff
path: root/pimd/pim_igmp.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-03-31 16:28:22 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-03-31 16:28:22 -0400
commite43223bcc38e0eb68c65c1d37c82739716bc0523 (patch)
tree73ecb31fbffb199d4720d72f8b397d6fe37e5d9f /pimd/pim_igmp.c
parent2b5c7fa46d98ea35f6febd5b3da32ca0a2445ca2 (diff)
pimd: Cleanup unused variable write
There exists a common pattern in pim where we were setting a variable to a value in the error case when we would no longer need it. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_igmp.c')
-rw-r--r--pimd/pim_igmp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pimd/pim_igmp.c b/pimd/pim_igmp.c
index e6582e2b17..ee88e7d8ea 100644
--- a/pimd/pim_igmp.c
+++ b/pimd/pim_igmp.c
@@ -876,10 +876,8 @@ pim_igmp_read (struct thread *t)
if (errno == EINTR)
continue;
if (errno == EWOULDBLOCK || errno == EAGAIN)
- {
- cont = 0;
break;
- }
+
goto done;
}
}