X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fnet%2Fvia-velocity.h;h=b9e114d36c0f67efc3a13fbfc0e55f6870e0eca6;hb=b91cba52e9b7b3f1c0037908a192d93a869ca9e5;hp=a33a1adb11f25ae7ce95693d2e4c97583b07b402;hpb=d5b20697ca37d80cc4ec2ba3c5ddf1339dc1d49a;p=linux-2.6 diff --git a/drivers/net/via-velocity.h b/drivers/net/via-velocity.h index a33a1adb11..b9e114d36c 100644 --- a/drivers/net/via-velocity.h +++ b/drivers/net/via-velocity.h @@ -246,7 +246,7 @@ struct tdesc1 { struct td_buf { u32 pa_low; u16 pa_high; - u16 bufsize:14; + u16 bufsize:14; u16 reserved:1; u16 queue:1; } __attribute__ ((__packed__)); @@ -262,25 +262,6 @@ struct velocity_rd_info { dma_addr_t skb_dma; }; -/** - * alloc_rd_info - allocate an rd info block - * - * Alocate and initialize a receive info structure used for keeping - * track of kernel side information related to each receive - * descriptor we are using - */ - -static inline struct velocity_rd_info *alloc_rd_info(void) -{ - struct velocity_rd_info *ptr; - if ((ptr = kmalloc(sizeof(struct velocity_rd_info), GFP_ATOMIC)) == NULL) - return NULL; - else { - memset(ptr, 0, sizeof(struct velocity_rd_info)); - return ptr; - } -} - /* * Used to track transmit side buffers. */