aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sky2.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-07-09 18:33:41 -0400
committerJeff Garzik <jeff@garzik.org>2007-07-10 12:22:29 -0400
commitf957da2aa0b7ef9659a45b0895ec4a08602b1c15 (patch)
treee3ea66c0ec2d84d792849538ba53669ed7e8cc78 /drivers/net/sky2.c
parent71749531f2d1954137a1a77422ef4ff29eb102dd (diff)
sky2: use roundup() macro
Use roundup() macro to size receive buffer. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/sky2.c')
-rw-r--r--drivers/net/sky2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c
index 4e0b839de7e..8cc3eea727a 100644
--- a/drivers/net/sky2.c
+++ b/drivers/net/sky2.c
@@ -1180,8 +1180,7 @@ static int sky2_rx_start(struct sky2_port *sky2)
1180 rx_set_checksum(sky2); 1180 rx_set_checksum(sky2);
1181 1181
1182 /* Space needed for frame data + headers rounded up */ 1182 /* Space needed for frame data + headers rounded up */
1183 size = ALIGN(sky2->netdev->mtu + ETH_HLEN + VLAN_HLEN, 8) 1183 size = roundup(sky2->netdev->mtu + ETH_HLEN + VLAN_HLEN, 8);
1184 + 8;
1185 1184
1186 /* Stopping point for hardware truncation */ 1185 /* Stopping point for hardware truncation */
1187 thresh = (size - 8) / sizeof(u32); 1186 thresh = (size - 8) / sizeof(u32);