/* Free up the resources used by a ppp channel.  */
static void ppp_destroy_channel(struct channel *pch)
/* Free up the resources used by a ppp channel.  */
static void ppp_destroy_channel(struct channel *pch)
{
	atomic_dec(&channel_count);
	if (!pch->file.dead) {
		printk(KERN_ERR "ppp: destroying undead channel %p !\n",
		       pch);
		return;
	}
	skb_queue_purge(&pch->file.xq);
	skb_queue_purge(&pch->file.rq);
	kfree(pch);
}