summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2003-08-28 22:15:05 +0000
committerrwatson <rwatson@FreeBSD.org>2003-08-28 22:15:05 +0000
commit3781650014cf14e8e73384604ae5d0689cc158bf (patch)
tree3f4f5491eb3068905cea06a86eed7de572440be0 /sys
parent51be1787c3f88a0d7f0e7acc9c80f8efe14d4107 (diff)
downloadFreeBSD-src-3781650014cf14e8e73384604ae5d0689cc158bf.zip
FreeBSD-src-3781650014cf14e8e73384604ae5d0689cc158bf.tar.gz
Remove redundant initialization of rti; SLIST_FOREACH does that for
us.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/igmp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/netinet/igmp.c b/sys/netinet/igmp.c
index 0758c98..b4881c1 100644
--- a/sys/netinet/igmp.c
+++ b/sys/netinet/igmp.c
@@ -130,7 +130,6 @@ find_rti(struct ifnet *ifp)
{
struct router_info *rti;
- rti = SLIST_FIRST(&router_info_head);
IGMP_PRINTF("[igmp.c, _find_rti] --> entering \n");
SLIST_FOREACH(rti, &router_info_head, rti_list) {
if (rti->rti_ifp == ifp) {
OpenPOWER on IntegriCloud