/* spider_net_free_chain - free descriptor chain @card: card structure @chain: address of chain  */
static void spider_net_free_chain(struct spider_net_card *card, struct spider_net_descr_chain *chain)
/* spider_net_free_chain - free descriptor chain @card: card structure @chain: address of chain  */
static void spider_net_free_chain(struct spider_net_card *card, struct spider_net_descr_chain *chain)
{
	struct spider_net_descr *descr;
	descr = chain->ring;
	do {
		descr->bus_addr = 0;
		descr->hwdescr->next_descr_addr = 0;
		descr = descr->next;
	} while (descr != chain->ring);
	dma_free_coherent(&card->pdev->dev, chain->num_desc,
	    chain->hwring, chain->dma_addr);
}