net: drivers: kill two unused macro definitions
Subsystems (3)
PATCH 1/1 net: drivers: kill two unused macro definitions
Signed-off-by Shan Wei <[email protected]>
--- drivers/net/bonding/bonding.h | 10 ---------- drivers/net/veth.c | 1 - 2 files changed, 0 insertions(+), 11 deletions(-)
drivers/net/bonding/bonding.h +0 -10
@@ -39,16 +39,6 @@ netif_carrier_ok(dev))/* -* Checks whether bond is ready for transmit. -* -* Caller must hold bond->lock -*/ -#define BOND_IS_OK (bond) \ - (((bond)->dev->flags & IFF_UP) && \ - netif_running((bond)->dev) && \ - ((bond)->slave_cnt > 0)) - -/* * Checks whether slave is ready for transmit. */ #define SLAVE_IS_OK (slave) \
drivers/net/veth.c +0 -1
@@ -22,7 +22,6 @@#define MIN_MTU 68/* Min L3 MTU */ #define MAX_MTU 65535/* Max L3 MTU (arbitrary) */ -#define MTU_PAD (ETH_HLEN + 4)/* Max difference between L2 and L3 size MTU */ struct veth_net_stats {unsigned long rx_packets;
Signature · 1 line
1.7.4.1
Quoted 43 lines · Sat, May 14, 2011 at 09:08:47AM CEST, [email protected] wrote:
Signed-off-by Shan Wei <[email protected]>---
drivers/net/bonding/bonding.h| 10 ----------drivers/net/veth.c| 1 -2 files changed, 0 insertions(+), 11 deletions(-)drivers/net/bonding/bonding.h +0
-10@@ -39,16 +39,6 @@ netif_carrier_ok(dev))/* -* Checks whether bond is ready for transmit. -* -* Caller must hold bond->lock -*/ -#define BOND_IS_OK (bond) \ - (((bond)->dev->flags & IFF_UP) && \ - netif_running((bond)->dev) && \ - ((bond)->slave_cnt > 0)) - -/* * Checks whether slave is ready for transmit. */ #define SLAVE_IS_OK (slave) \drivers/net/veth.c +0
-1@@ -22,7 +22,6 @@#define MIN_MTU 68/* Min L3 MTU */ #define MAX_MTU 65535/* Max L3 MTU (arbitrary) */ -#define MTU_PAD (ETH_HLEN + 4)/* Max difference between L2 and L3 size MTU */ struct veth_net_stats {unsigned long rx_packets;Signature · 1 line
1.7.4.1
Reviewed-by Jiri Pirko <[email protected]>
From: Jiri Pirko <[email protected]>
Date: Sat, 14 May 2011 09:53:35 +0200
Quoted 4 lines
Quoted 3 lines · Sat, May 14, 2011 at 09:08:47AM CEST, [email protected] wrote:
Signed-off-by Shan Wei <[email protected]>
...
Quoted 1 line
Reviewed-by Jiri Pirko <[email protected]>
Applied.