/* atl1c_clean_tx_ring - Free Tx-skb @adapter: board private structure  */
static void atl1c_clean_tx_ring(struct atl1c_adapter *adapter, enum atl1c_trans_queue type)
/* atl1c_clean_tx_ring - Free Tx-skb @adapter: board private structure  */
static void atl1c_clean_tx_ring(struct atl1c_adapter *adapter, enum atl1c_trans_queue type)
{
	struct atl1c_tpd_ring *tpd_ring = &adapter->tpd_ring[type];
	struct atl1c_buffer *buffer_info;
	struct pci_dev *pdev = adapter->pdev;
	u16 index, ring_count;
	ring_count = tpd_ring->count;
	for (index = 0; index < ring_count; index++) {
		buffer_info = &tpd_ring->buffer_info[index];
		atl1c_clean_buffer(pdev, buffer_info, 0);
	}
	memset(tpd_ring->desc, 0, sizeof(struct atl1c_tpd_desc) *
		ring_count);
	atomic_set(&tpd_ring->next_to_clean, 0);
	tpd_ring->next_to_use = 0;
}