forked from Mirror/frr
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>
This commit is contained in:
parent
2b5c7fa46d
commit
e43223bcc3
|
@ -876,10 +876,8 @@ pim_igmp_read (struct thread *t)
|
|||
if (errno == EINTR)
|
||||
continue;
|
||||
if (errno == EWOULDBLOCK || errno == EAGAIN)
|
||||
{
|
||||
cont = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -577,10 +577,8 @@ static int mroute_read(struct thread *t)
|
|||
if (errno == EINTR)
|
||||
continue;
|
||||
if (errno == EWOULDBLOCK || errno == EAGAIN)
|
||||
{
|
||||
cont = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
if (PIM_DEBUG_MROUTE)
|
||||
zlog_warn("%s: failure reading fd=%d: errno=%d: %s",
|
||||
__PRETTY_FUNCTION__, fd, errno, safe_strerror(errno));
|
||||
|
|
|
@ -310,10 +310,8 @@ static int pim_sock_read(struct thread *t)
|
|||
if (errno == EINTR)
|
||||
continue;
|
||||
if (errno == EWOULDBLOCK || errno == EAGAIN)
|
||||
{
|
||||
cont = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
if (PIM_DEBUG_PIM_PACKETS)
|
||||
zlog_debug ("Received errno: %d %s", errno, safe_strerror (errno));
|
||||
goto done;
|
||||
|
|
Loading…
Reference in a new issue