patch-2.3.16 linux/include/net/ndisc.h

Next file: linux/include/video/fbcon.h
Previous file: linux/include/net/irda/timer.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.15/linux/include/net/ndisc.h linux/include/net/ndisc.h
@@ -104,15 +104,9 @@
 extern __inline__ struct neighbour * ndisc_get_neigh(struct net_device *dev, struct in6_addr *addr)
 {
 
-	if (dev) {
-		struct neighbour *neigh;
+	if (dev)
+		return __neigh_lookup(&nd_tbl, addr, dev, 1);
 
-		start_bh_atomic();
-		neigh = __neigh_lookup(&nd_tbl, addr, dev, 1);
-		end_bh_atomic();
-
-		return neigh;
-	}
 	return NULL;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)