diff options
author | Milind Arun Choudhary <milindchoudhary@gmail.com> | 2007-04-27 16:55:29 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-04-28 11:01:07 -0400 |
commit | 9099cfb9170f352f08207dfa099717a904cff71f (patch) | |
tree | 6b2c08422851d5e36c866fc4397ce0bc43a4319f /drivers/net/e1000/e1000_param.c | |
parent | abf17ffda7b7b6c83a29d7ccea91d46065c6ca3e (diff) |
e1000: ROUND_UP macro cleanup in drivers/net/e1000
E1000_ROUNDUP macro cleanup, use ALIGN
Signed-off-by: Milind Arun Choudhary <milindchoudhary@gmail.com>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/e1000/e1000_param.c')
-rw-r--r-- | drivers/net/e1000/e1000_param.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/e1000/e1000_param.c b/drivers/net/e1000/e1000_param.c index f8862e203ac9..f485874a63f5 100644 --- a/drivers/net/e1000/e1000_param.c +++ b/drivers/net/e1000/e1000_param.c | |||
@@ -305,7 +305,7 @@ e1000_check_options(struct e1000_adapter *adapter) | |||
305 | if (num_TxDescriptors > bd) { | 305 | if (num_TxDescriptors > bd) { |
306 | tx_ring->count = TxDescriptors[bd]; | 306 | tx_ring->count = TxDescriptors[bd]; |
307 | e1000_validate_option(&tx_ring->count, &opt, adapter); | 307 | e1000_validate_option(&tx_ring->count, &opt, adapter); |
308 | E1000_ROUNDUP(tx_ring->count, | 308 | tx_ring->count = ALIGN(tx_ring->count, |
309 | REQ_TX_DESCRIPTOR_MULTIPLE); | 309 | REQ_TX_DESCRIPTOR_MULTIPLE); |
310 | } else { | 310 | } else { |
311 | tx_ring->count = opt.def; | 311 | tx_ring->count = opt.def; |
@@ -331,7 +331,7 @@ e1000_check_options(struct e1000_adapter *adapter) | |||
331 | if (num_RxDescriptors > bd) { | 331 | if (num_RxDescriptors > bd) { |
332 | rx_ring->count = RxDescriptors[bd]; | 332 | rx_ring->count = RxDescriptors[bd]; |
333 | e1000_validate_option(&rx_ring->count, &opt, adapter); | 333 | e1000_validate_option(&rx_ring->count, &opt, adapter); |
334 | E1000_ROUNDUP(rx_ring->count, | 334 | rx_ring->count = ALIGN(rx_ring->count, |
335 | REQ_RX_DESCRIPTOR_MULTIPLE); | 335 | REQ_RX_DESCRIPTOR_MULTIPLE); |
336 | } else { | 336 | } else { |
337 | rx_ring->count = opt.def; | 337 | rx_ring->count = opt.def; |