[PATCH 7/7] net: retire global NetRxPackets arrays

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Now that no in-tree user of NetRxPackets remain, no one will miss this
remnant of simpler times.

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 include/net.h | 2 --
 net/net.c     | 3 ---
 2 files changed, 5 deletions(-)

diff --git a/include/net.h b/include/net.h
index 38fd6f8d3c41..5a6dd9ca7b82 100644
--- a/include/net.h
+++ b/include/net.h
@@ -249,8 +249,6 @@ struct icmphdr {
  * (big endian).
  */
 
-extern unsigned char *NetRxPackets[PKTBUFSRX];/* Receive packets		*/
-
 void net_set_ip(struct eth_device *edev, IPaddr_t ip);
 void net_set_serverip(IPaddr_t ip);
 const char *net_get_server(void);
diff --git a/net/net.c b/net/net.c
index 6f418df0538b..c06e88fe532d 100644
--- a/net/net.c
+++ b/net/net.c
@@ -29,7 +29,6 @@
 #include <linux/ctype.h>
 #include <linux/err.h>
 
-unsigned char *NetRxPackets[PKTBUFSRX]; /* Receive packets		*/
 static unsigned int net_ip_id;
 
 char *net_server;
@@ -815,8 +814,6 @@ int net_alloc_packets(void **packets, int count)
 
 static int net_init(void)
 {
-	net_alloc_packets((void **)NetRxPackets, PKTBUFSRX);
-
 	globalvar_add_simple_ip("net.nameserver", &net_nameserver);
 	globalvar_add_simple_string("net.domainname", &net_domainname);
 	globalvar_add_simple_string("net.server", &net_server);
-- 
2.39.2





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux