aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igb/igb.h
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2009-03-19 20:16:50 -0400
committerDavid S. Miller <davem@davemloft.net>2009-03-21 19:57:01 -0400
commitc493ea45a4251869fe7b820e0486b73b57df7c12 (patch)
treebf389756f06469dd3e15091046b0eace3f06152b /drivers/net/igb/igb.h
parentfa4a7ef36ec834fee1719636b30d2f28f4cb0166 (diff)
igb: remove IGB_DESC_UNUSED since it is better handled by a function call
This patch removes IGB_DESC_UNUSED and replaces it with a function call instead in order to cleanup some of the ugliness introduced by the macro. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igb/igb.h')
-rw-r--r--drivers/net/igb/igb.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/igb/igb.h b/drivers/net/igb/igb.h
index e18ac1bf45ff..4e8464b9df2e 100644
--- a/drivers/net/igb/igb.h
+++ b/drivers/net/igb/igb.h
@@ -182,10 +182,6 @@ struct igb_ring {
182 char name[IFNAMSIZ + 5]; 182 char name[IFNAMSIZ + 5];
183}; 183};
184 184
185#define IGB_DESC_UNUSED(R) \
186 ((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \
187 (R)->next_to_clean - (R)->next_to_use - 1)
188
189#define E1000_RX_DESC_ADV(R, i) \ 185#define E1000_RX_DESC_ADV(R, i) \
190 (&(((union e1000_adv_rx_desc *)((R).desc))[i])) 186 (&(((union e1000_adv_rx_desc *)((R).desc))[i]))
191#define E1000_TX_DESC_ADV(R, i) \ 187#define E1000_TX_DESC_ADV(R, i) \