提交 5243a37b 编写于 作者: H Henrik Kretzschmar 提交者: Jeff Garzik

[PATCH] remove an unused function from the header

Removes an unused function from the via-velocity-driver.
It doesn't make the binary smaller, but the source cleaner.
Signed-off-by: NHenrik Kretzschmar <henne@nachtwindheim.de>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 a513c315
......@@ -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.
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册