/* e1000_alloc_queues - Allocate memory for all rings @adapter: board private structure to initialize  */
static int __devinit e1000_alloc_queues(struct e1000_adapter *adapter)
/* e1000_alloc_queues - Allocate memory for all rings @adapter: board private structure to initialize  */
static int __devinit e1000_alloc_queues(struct e1000_adapter *adapter)
{
	adapter->tx_ring = kzalloc(sizeof(struct e1000_ring), GFP_KERNEL);
	if (!adapter->tx_ring)
		goto err;
	adapter->rx_ring = kzalloc(sizeof(struct e1000_ring), GFP_KERNEL);
	if (!adapter->rx_ring)
		goto err;
	return 0;
err:
	e_err("Unable to allocate memory for queues\n");
	kfree(adapter->rx_ring);
	kfree(adapter->tx_ring);
	return -ENOMEM;
}