aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAkinobu Mita <[email protected]>2006-04-28 15:21:23 -0700
committerDavid S. Miller <[email protected]>2006-04-29 18:33:15 -0700
commitda753beaeb1446aa87bcca7e8a0026633a8914f0 (patch)
tree910ca47bce30c4ef5df66c0d6545051f61d2d49e /include/linux
parenta536e0778781c1f2ce38cf8e1d82ce258f0193c1 (diff)
[NET]: use hlist_unhashed()
Use hlist_unhashed() rather than accessing inside data structure. Signed-off-by: Akinobu Mita <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/list.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/list.h b/include/linux/list.h
index 67258b47e9ca..76f05718342c 100644
--- a/include/linux/list.h
+++ b/include/linux/list.h
@@ -619,7 +619,7 @@ static inline void hlist_del_rcu(struct hlist_node *n)
static inline void hlist_del_init(struct hlist_node *n)
{
- if (n->pprev) {
+ if (!hlist_unhashed(n)) {
__hlist_del(n);
INIT_HLIST_NODE(n);
}