tipc: eliminate duplicated discard_rx_queue routine
authorYing Xue <ying.xue@windriver.com>
Sun, 20 Jan 2013 22:30:08 +0000 (23:30 +0100)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 15 Feb 2013 21:10:13 +0000 (16:10 -0500)
commit57467e56293796f780e91a24600a732516f534ac
tree0d6915d5ef8b851d6099fcdf49d342f1ea5d254f
parentd887199dc28c46788b155b234274d5ff41afed8e
tipc: eliminate duplicated discard_rx_queue routine

The tipc function discard_rx_queue() is just a duplicated
implementation of __skb_queue_purge().  Remove the former
and directly invoke __skb_queue_purge().

In doing so, the underscores convey to the code reader, more
information about the current locking state that is assumed.

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/socket.c