diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-03-31 22:28:22 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-03-31 22:28:22 +0200 |
commit | e43223bcc38e0eb68c65c1d37c82739716bc0523 (patch) | |
tree | 73ecb31fbffb199d4720d72f8b397d6fe37e5d9f /pimd/pim_pim.c | |
parent | Merge pull request #291 from AnuradhaKaruppiah/pim-ssm (diff) | |
download | frr-e43223bcc38e0eb68c65c1d37c82739716bc0523.tar.xz frr-e43223bcc38e0eb68c65c1d37c82739716bc0523.zip |
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_pim.c')
-rw-r--r-- | pimd/pim_pim.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pimd/pim_pim.c b/pimd/pim_pim.c index f82687245..b2f858b7d 100644 --- a/pimd/pim_pim.c +++ b/pimd/pim_pim.c @@ -310,10 +310,8 @@ static int pim_sock_read(struct thread *t) if (errno == EINTR) continue; if (errno == EWOULDBLOCK || errno == EAGAIN) - { - cont = 0; - break; - } + break; + if (PIM_DEBUG_PIM_PACKETS) zlog_debug ("Received errno: %d %s", errno, safe_strerror (errno)); goto done; |