/* Free the buffer for each ring slot. This may be called before mc32_load_rx_ring(), eg. on error in mc32_open(). Requires rx skb pointers to point to a valid skb, or NULL.  */
static void mc32_flush_rx_ring(struct net_device *dev)
/* Free the buffer for each ring slot. This may be called before mc32_load_rx_ring(), eg. on error in mc32_open(). Requires rx skb pointers to point to a valid skb, or NULL.  */
static void mc32_flush_rx_ring(struct net_device *dev)
{
	struct mc32_local *lp = netdev_priv(dev);
	int i;
	for(i=0; i < RX_RING_LEN; i++)
	{
		if (lp->rx_ring[i].skb) {
			dev_kfree_skb(lp->rx_ring[i].skb);
			lp->rx_ring[i].skb = NULL;
		}
		lp->rx_ring[i].p=NULL;
	}
}