Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Use LIST_FOREACH instead of LIST_FOREACH_SAFE
details: https://anonhg.NetBSD.org/src/rev/2cc198690a47
branches: trunk
changeset: 344329:2cc198690a47
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed Mar 23 04:56:21 2016 +0000
description:
Use LIST_FOREACH instead of LIST_FOREACH_SAFE
No need to use *_SAFE because we don't remove any items in the loop.
diffstat:
sys/net/if_bridge.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 0d5c7405201b -r 2cc198690a47 sys/net/if_bridge.c
--- a/sys/net/if_bridge.c Wed Mar 23 00:20:18 2016 +0000
+++ b/sys/net/if_bridge.c Wed Mar 23 04:56:21 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bridge.c,v 1.108 2016/02/15 01:11:41 ozaki-r Exp $ */
+/* $NetBSD: if_bridge.c,v 1.109 2016/03/23 04:56:21 ozaki-r Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -80,7 +80,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.108 2016/02/15 01:11:41 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.109 2016/03/23 04:56:21 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_bridge_ipf.h"
@@ -2237,7 +2237,7 @@
struct bridge_rtnode *brt, *nbrt;
BRIDGE_RT_LOCK(sc);
- LIST_FOREACH_SAFE(brt, &sc->sc_rtlist, brt_list, nbrt) {
+ LIST_FOREACH(brt, &sc->sc_rtlist, brt_list, nbrt) {
if (brt->brt_ifp == ifp)
break;
}
Home |
Main Index |
Thread Index |
Old Index