Skip to content

Commit

Permalink
[PATCH] remove an unused function from the header
Browse files Browse the repository at this point in the history
Removes an unused function from the via-velocity-driver.
It doesn't make the binary smaller, but the source cleaner.

Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Henrik Kretzschmar authored and Jeff Garzik committed Aug 19, 2006
1 parent a513c31 commit 5243a37
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions drivers/net/via-velocity.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 5243a37

Please sign in to comment.