From owner-svn-src-head@FreeBSD.ORG Mon Nov 24 17:34:01 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 219D7106564A; Mon, 24 Nov 2008 17:34:01 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 13C9D8FC0A; Mon, 24 Nov 2008 17:34:01 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mAOHY0Vx093431; Mon, 24 Nov 2008 17:34:00 GMT (envelope-from sam@svn.freebsd.org) Received: (from sam@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mAOHY0Gw093429; Mon, 24 Nov 2008 17:34:00 GMT (envelope-from sam@svn.freebsd.org) Message-Id: <200811241734.mAOHY0Gw093429@svn.freebsd.org> From: Sam Leffler Date: Mon, 24 Nov 2008 17:34:00 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r185253 - head/sys/net X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Nov 2008 17:34:01 -0000 Author: sam Date: Mon Nov 24 17:34:00 2008 New Revision: 185253 URL: http://svn.freebsd.org/changeset/base/185253 Log: use consistent style Modified: head/sys/net/if.c Modified: head/sys/net/if.c ============================================================================== --- head/sys/net/if.c Mon Nov 24 16:33:23 2008 (r185252) +++ head/sys/net/if.c Mon Nov 24 17:34:00 2008 (r185253) @@ -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. */