The functions list_del followed by list_add_tail is equivalent to the 
existing inline list_move_tail. list_move_tail avoids unnecessary _LIST_POISON.
Trivial for 2.6.17.

Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]>


--- linux-2.6.orig/net/core/dev.c       2006-03-03 10:33:59.000000000 -0800
+++ linux-2.6/net/core/dev.c    2006-03-06 13:41:30.000000000 -0800
@@ -1737,8 +1737,7 @@
                if (dev->quota <= 0 || dev->poll(dev, &budget)) {
                        netpoll_poll_unlock(have);
                        local_irq_disable();
-                       list_del(&dev->poll_list);
-                       list_add_tail(&dev->poll_list, &queue->poll_list);
+                       list_move_tail(&dev->poll_list, &queue->poll_list);
                        if (dev->quota < 0)
                                dev->quota += dev->weight;
                        else
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to