Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f957da2aa0b7ef9659a45b0895ec4a08602b1c15
Commit:     f957da2aa0b7ef9659a45b0895ec4a08602b1c15
Parent:     71749531f2d1954137a1a77422ef4ff29eb102dd
Author:     Stephen Hemminger <[EMAIL PROTECTED]>
AuthorDate: Mon Jul 9 15:33:41 2007 -0700
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Tue Jul 10 12:22:29 2007 -0400

    sky2: use roundup() macro
    
    Use roundup() macro to size receive buffer.
    
    Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
---
 drivers/net/sky2.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c
index 4e0b839..8cc3eea 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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to