Skip to contentSkip to conversation

remove an unused function from the header

PATCH New Henne 1 participant 1 message Aug 15, 2006

Subsystems (2)
lore
Share & tools
lore

Henne

author
#0 lore raw

PATCH 1/1 remove an unused function from the header

From: Henrik Kretzschmar <[email protected]>

Removes an unused function from the via-velocity-driver. It doesn't make the binary smaller, but the source cleaner.

---

drivers/net/via-velocity.h +0 -19
@@ -262,25 +262,6 @@
 	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.
  */