/* Free send-queue completely. Parameter: card = pointer to card struct channel = channel number  */
static void icn_free_queue(icn_card *card, int channel)
/* Free send-queue completely. Parameter: card = pointer to card struct channel = channel number  */
static void icn_free_queue(icn_card *card, int channel)
{
	struct sk_buff_head *queue = &card->spqueue[channel];
	struct sk_buff *skb;
	skb_queue_purge(queue);
	card->xlen[channel] = 0;
	card->sndcount[channel] = 0;
	if ((skb = card->xskb[channel])) {
		card->xskb[channel] = NULL;
		dev_kfree_skb(skb);
	}
}