eliminate dead code and collapse the remainder
Noticed by: Coverity Prevent analysis tool Reviewed by: rwatson
This commit is contained in:
parent
9f549c4137
commit
4d414c12b0
@ -1017,7 +1017,6 @@ rt_ifannouncemsg(struct ifnet *ifp, int what)
|
|||||||
static void
|
static void
|
||||||
rt_dispatch(struct mbuf *m, const struct sockaddr *sa)
|
rt_dispatch(struct mbuf *m, const struct sockaddr *sa)
|
||||||
{
|
{
|
||||||
unsigned short *family;
|
|
||||||
struct m_tag *tag;
|
struct m_tag *tag;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -1032,8 +1031,7 @@ rt_dispatch(struct mbuf *m, const struct sockaddr *sa)
|
|||||||
m_freem(m);
|
m_freem(m);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
family = (unsigned short *)(tag + 1);
|
*(unsigned short *)(tag + 1) = sa->sa_family;
|
||||||
*family = sa ? sa->sa_family : 0;
|
|
||||||
m_tag_prepend(m, tag);
|
m_tag_prepend(m, tag);
|
||||||
}
|
}
|
||||||
netisr_queue(NETISR_ROUTE, m); /* mbuf is free'd on failure. */
|
netisr_queue(NETISR_ROUTE, m); /* mbuf is free'd on failure. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user