From: Stephen Hemminger Date: Mon, 9 Jul 2007 22:33:41 +0000 (-0700) Subject: sky2: use roundup() macro X-Git-Tag: MMI-PSA29.97-13-9~42340^2~31 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f957da2aa0b7ef9659a45b0895ec4a08602b1c15;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git sky2: use roundup() macro Use roundup() macro to size receive buffer. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index 4e0b839de7e4..8cc3eea727a8 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c @@ -1180,8 +1180,7 @@ static int sky2_rx_start(struct sky2_port *sky2) 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);