From 57a61219130b9c71d0db02ebfd442df5e2cecf4e Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Mon, 1 Sep 2008 12:47:57 +0100 Subject: [PATCH] --- yaml --- r: 111346 b: refs/heads/master c: a2589027ff0011077cdaf761be3a9a4ba40b5118 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/net/sfc/net_driver.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 44666470b08e..7a8f11956fa2 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 955f0a744bf2d2192cb49b2eccffbc02a4adc401 +refs/heads/master: a2589027ff0011077cdaf761be3a9a4ba40b5118 diff --git a/trunk/drivers/net/sfc/net_driver.h b/trunk/drivers/net/sfc/net_driver.h index b5649b16cd43..74e934c7e6f8 100644 --- a/trunk/drivers/net/sfc/net_driver.h +++ b/trunk/drivers/net/sfc/net_driver.h @@ -853,9 +853,9 @@ struct efx_nic_type { /* Iterate over all RX queues belonging to a channel */ #define efx_for_each_channel_rx_queue(_rx_queue, _channel) \ - for (_rx_queue = &_channel->efx->rx_queue[0]; \ - _rx_queue < &_channel->efx->rx_queue[EFX_MAX_RX_QUEUES]; \ - _rx_queue++) \ + for (_rx_queue = &_channel->efx->rx_queue[_channel->channel]; \ + _rx_queue; \ + _rx_queue = NULL) \ if (_rx_queue->channel != _channel) \ continue; \ else