pimd: Address PR Comments

Remove a bit more dead code and unused variable.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2017-05-18 09:44:09 -04:00
parent 4a07939b68
commit 25c58d6d2b
2 changed files with 1 additions and 5 deletions

View File

@ -310,13 +310,10 @@ static int ssmpingd_read_msg(struct ssmpingd_sock *ss)
static int ssmpingd_sock_read(struct thread *t) static int ssmpingd_sock_read(struct thread *t)
{ {
struct ssmpingd_sock *ss; struct ssmpingd_sock *ss;
int sock_fd;
int result; int result;
ss = THREAD_ARG(t); ss = THREAD_ARG(t);
sock_fd = THREAD_FD(t);
result = ssmpingd_read_msg(ss); result = ssmpingd_read_msg(ss);
/* Keep reading */ /* Keep reading */

View File

@ -1377,7 +1377,6 @@ pim_upstream_start_register_stop_timer (struct pim_upstream *up, int null_regist
{ {
uint32_t time; uint32_t time;
if (up->t_rs_timer)
THREAD_TIMER_OFF (up->t_rs_timer); THREAD_TIMER_OFF (up->t_rs_timer);
if (!null_register) if (!null_register)