aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgb/ixgb_main.c
diff options
context:
space:
mode:
authorMilind Arun Choudhary <milindchoudhary@gmail.com>2007-04-27 16:55:31 -0400
committerJeff Garzik <jeff@garzik.org>2007-04-28 11:01:07 -0400
commit55e924cf5772cbcf00549e448be35b392ff3084c (patch)
tree088aeee07c810987ba32f24e9ee7ec2581106257 /drivers/net/ixgb/ixgb_main.c
parent9099cfb9170f352f08207dfa099717a904cff71f (diff)
ixgb: ROUND_UP macro cleanup in drivers/net/ixgb
IXGB_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/ixgb/ixgb_main.c')
-rw-r--r--drivers/net/ixgb/ixgb_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ixgb/ixgb_main.c b/drivers/net/ixgb/ixgb_main.c
index dfde80e54aef..6d2b059371f1 100644
--- a/drivers/net/ixgb/ixgb_main.c
+++ b/drivers/net/ixgb/ixgb_main.c
@@ -685,7 +685,7 @@ ixgb_setup_tx_resources(struct ixgb_adapter *adapter)
685 /* round up to nearest 4K */ 685 /* round up to nearest 4K */
686 686
687 txdr->size = txdr->count * sizeof(struct ixgb_tx_desc); 687 txdr->size = txdr->count * sizeof(struct ixgb_tx_desc);
688 IXGB_ROUNDUP(txdr->size, 4096); 688 txdr->size = ALIGN(txdr->size, 4096);
689 689
690 txdr->desc = pci_alloc_consistent(pdev, txdr->size, &txdr->dma); 690 txdr->desc = pci_alloc_consistent(pdev, txdr->size, &txdr->dma);
691 if(!txdr->desc) { 691 if(!txdr->desc) {
@@ -774,7 +774,7 @@ ixgb_setup_rx_resources(struct ixgb_adapter *adapter)
774 /* Round up to nearest 4K */ 774 /* Round up to nearest 4K */
775 775
776 rxdr->size = rxdr->count * sizeof(struct ixgb_rx_desc); 776 rxdr->size = rxdr->count * sizeof(struct ixgb_rx_desc);
777 IXGB_ROUNDUP(rxdr->size, 4096); 777 rxdr->size = ALIGN(rxdr->size, 4096);
778 778
779 rxdr->desc = pci_alloc_consistent(pdev, rxdr->size, &rxdr->dma); 779 rxdr->desc = pci_alloc_consistent(pdev, rxdr->size, &rxdr->dma);
780 780