Subject: [PATCH 09/12] sky2: use roundup() macro

From: Stephen Hemminger <[email-masked]>
Date: Mon, 09 Jul 2007 15:33:41 -0700

Use roundup() macro to size receive buffer.

Signed-off-by: Stephen Hemminger <[email-masked]>

--- a/drivers/net/sky2.c	2007-07-09 15:30:12.000000000 -0700
+++ b/drivers/net/sky2.c	2007-07-09 15:30:13.000000000 -0700
@@ -1180,8 +1180,7 @@ static int sky2_rx_start(struct sky2_por
 	rx_set_checksum(sky2);
 
 	/* Space needed for frame data + headers rounded up */
-	size = ALIGN(sky2->netdev->mtu + ETH_HLEN + VLAN_HLEN, 8)
-		+ 8;
+	size = roundup(sky2->netdev->mtu + ETH_HLEN + VLAN_HLEN, 8);
 
 	/* Stopping point for hardware truncation */
 	thresh = (size - 8) / sizeof(u32);

-- 
Stephen Hemminger <[email-masked]>