Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1598473 > unrolled thread

[PATCH net-next v2 17/17] etherdevice: remove unused eth_addr_greater

Started byVivien Didelot <vivien.didelot@savoirfairelinux.com>
First post2017-03-11 22:20 +0100
Last post2017-03-12 01:00 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH net-next v2 17/17] etherdevice: remove unused eth_addr_greater Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2017-03-11 22:20 +0100
    Re: [PATCH net-next v2 17/17] etherdevice: remove unused  eth_addr_greater Andrew Lunn <andrew@lunn.ch> - 2017-03-12 01:00 +0100

#1598473 — [PATCH net-next v2 17/17] etherdevice: remove unused eth_addr_greater

FromVivien Didelot <vivien.didelot@savoirfairelinux.com>
Date2017-03-11 22:20 +0100
Subject[PATCH net-next v2 17/17] etherdevice: remove unused eth_addr_greater
Message-ID<tjWAG-8vE-15@gated-at.bofh.it>
eth_addr_greater() was introduced for the mv88e6xxx driver, but is not
used anymore. There is no other user, thus remove this function.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
---
 include/linux/etherdevice.h | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h
index c62b709b1ce0..2d9f80848d4b 100644
--- a/include/linux/etherdevice.h
+++ b/include/linux/etherdevice.h
@@ -447,21 +447,6 @@ static inline void eth_addr_dec(u8 *addr)
 }
 
 /**
- * ether_addr_greater - Compare two Ethernet addresses
- * @addr1: Pointer to a six-byte array containing the Ethernet address
- * @addr2: Pointer other six-byte array containing the Ethernet address
- *
- * Compare two Ethernet addresses, returns true addr1 is greater than addr2
- */
-static inline bool ether_addr_greater(const u8 *addr1, const u8 *addr2)
-{
-	u64 u1 = ether_addr_to_u64(addr1);
-	u64 u2 = ether_addr_to_u64(addr2);
-
-	return u1 > u2;
-}
-
-/**
  * is_etherdev_addr - Tell if given Ethernet address belongs to the device.
  * @dev: Pointer to a device structure
  * @addr: Pointer to a six-byte array containing the Ethernet address
-- 
2.12.0

[toc] | [next] | [standalone]


#1598508 — Re: [PATCH net-next v2 17/17] etherdevice: remove unused eth_addr_greater

FromAndrew Lunn <andrew@lunn.ch>
Date2017-03-12 01:00 +0100
SubjectRe: [PATCH net-next v2 17/17] etherdevice: remove unused eth_addr_greater
Message-ID<tjZ5v-1EP-1@gated-at.bofh.it>
In reply to#1598473
On Sat, Mar 11, 2017 at 04:13:03PM -0500, Vivien Didelot wrote:
> eth_addr_greater() was introduced for the mv88e6xxx driver, but is not
> used anymore. There is no other user, thus remove this function.
> 
> Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web