diff options
author | sam <sam@FreeBSD.org> | 2008-11-24 17:34:00 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2008-11-24 17:34:00 +0000 |
commit | a5ea7c590321ce817998039183a841e2fa049eb7 (patch) | |
tree | cdfeac6f44d333a8761ef14232e2d125c3bc9226 /sys/net/if.c | |
parent | cbaf56bf53ddcf5502e932370c0b293c7d0a45a8 (diff) | |
download | FreeBSD-src-a5ea7c590321ce817998039183a841e2fa049eb7.zip FreeBSD-src-a5ea7c590321ce817998039183a841e2fa049eb7.tar.gz |
use consistent style
Diffstat (limited to 'sys/net/if.c')
-rw-r--r-- | sys/net/if.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index e159a21..02ad6c6 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -736,8 +736,7 @@ if_detach(struct ifnet *ifp) INIT_VNET_NET(ifp->if_vnet); struct ifaddr *ifa; struct radix_node_head *rnh; - int s; - int i; + int s, i, j; struct domain *dp; struct ifnet *iter; int found = 0; @@ -809,14 +808,13 @@ if_detach(struct ifnet *ifp) * to this interface...oh well... */ for (i = 1; i <= AF_MAX; i++) { - int j; - for (j = 0; j < rt_numfibs; j++) { - if ((rnh = V_rt_tables[j][i]) == NULL) - continue; - RADIX_NODE_HEAD_LOCK(rnh); - (void) rnh->rnh_walktree(rnh, if_rtdel, ifp); - RADIX_NODE_HEAD_UNLOCK(rnh); - } + for (j = 0; j < rt_numfibs; j++) { + if ((rnh = V_rt_tables[j][i]) == NULL) + continue; + RADIX_NODE_HEAD_LOCK(rnh); + (void) rnh->rnh_walktree(rnh, if_rtdel, ifp); + RADIX_NODE_HEAD_UNLOCK(rnh); + } } /* Announce that the interface is gone. */ |