OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] Remove unused define from loopback driver
[PATCH] Remove unused define from loopback driver [message #24969] Wed, 12 December 2007 14:44 Go to next message
Pavel Emelianov is currently offline  Pavel Emelianov
Messages: 1149
Registered: September 2006
Senior Member
The LOOPBACK_OVERHEAD is not used in this file at all.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>

---

diff --git a/drivers/net/loopback.c b/drivers/net/loopback.c
index 662b8d1..3d1c743 100644
--- a/drivers/net/loopback.c
+++ b/drivers/net/loopback.c
@@ -64,8 +64,6 @@ struct pcpu_lstats {
 	unsigned long bytes;
 };
 
-#define LOOPBACK_OVERHEAD (128 + MAX_HEADER + 16 + 16)
-
 /* KISS: just allocate small chunks and copy bits.
  *
  * So, in fact, this is documentation, explaining what we expect
Re: [PATCH] Remove unused define from loopback driver [message #24988 is a reply to message #24969] Wed, 12 December 2007 19:00 Go to previous message
davem is currently offline  davem
Messages: 463
Registered: February 2006
Senior Member
From: Pavel Emelyanov <xemul@openvz.org>
Date: Wed, 12 Dec 2007 17:44:54 +0300

> The LOOPBACK_OVERHEAD is not used in this file at all.
> 
> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>

Applied to net-2.6.25, thanks.
Previous Topic: [PATCH 2.6.25] netns: network namespace was passed into dev_getbyhwaddr but not used
Next Topic: [RFC] [PATCH 0/8] user namespaces: add ns to user_struct
Goto Forum:
  


Current Time: Sat Apr 13 06:41:28 GMT 2024

Total time taken to generate the page: 0.01548 seconds