aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp
diff options
context:
space:
mode:
authorRobert P. J. Day <rpjday@crashcourse.ca>2008-04-17 00:09:26 -0400
committerRoland Dreier <rolandd@cisco.com>2008-04-17 00:09:26 -0400
commit157de229468b2a63bbc8f9a7d37c70a2c9731ac8 (patch)
tree12c38b2c5f92af9b4ec3d7c7457b73b951a1729d /drivers/infiniband/ulp
parent10f32065a25d22bf7894fa39ff2ce8492922086a (diff)
IB: Use shorter list_splice_init() for brevity
Convert list_splice() + INIT_LIST_HEAD() to the equivalent list_splice_init() Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r--drivers/infiniband/ulp/ipoib/ipoib_main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c
index 329b4675aec..d87f53190a1 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_main.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c
@@ -359,8 +359,7 @@ void ipoib_flush_paths(struct net_device *dev)
359 spin_lock_irq(&priv->tx_lock); 359 spin_lock_irq(&priv->tx_lock);
360 spin_lock(&priv->lock); 360 spin_lock(&priv->lock);
361 361
362 list_splice(&priv->path_list, &remove_list); 362 list_splice_init(&priv->path_list, &remove_list);
363 INIT_LIST_HEAD(&priv->path_list);
364 363
365 list_for_each_entry(path, &remove_list, list) 364 list_for_each_entry(path, &remove_list, list)
366 rb_erase(&path->rb_node, &priv->path_tree); 365 rb_erase(&path->rb_node, &priv->path_tree);