Commit cf32f74c authored by Ralf Bächle's avatar Ralf Bächle Committed by David S. Miller

[AX25]: Use skb_queue_purge().

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8fd0dfb3
......@@ -306,9 +306,7 @@ void ax25_destroy_socket(ax25_cb *ax25)
kfree_skb(skb);
}
while ((skb = skb_dequeue(&ax25->sk->sk_write_queue)) != NULL) {
kfree_skb(skb);
}
skb_queue_purge(&ax25->sk->sk_write_queue);
}
if (ax25->sk != NULL) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment