dp83640: Make use of skb_queue_purge instead of reimplementing the code
authorAlexander Duyck <alexander.h.duyck@intel.com>
Mon, 8 Sep 2014 15:25:34 +0000 (11:25 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Sep 2014 21:24:35 +0000 (14:24 -0700)
commitdb91b724b53b1cfd0e258d7cf3a03a062a89fe2d
tree1cbfb6018f7609dc4cc1e5c0fd200d931287eee8
parenteb84d6b60491a3ca3d90d62ee5346b007770d40d
dp83640: Make use of skb_queue_purge instead of reimplementing the code

This change makes it so that dp83640_remove can use skb_queue_purge
instead of looping through itself to flush any entries out of the queue.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83640.c