This popped out at me when I was looking at this driver awhile ago but I see
now LLVM even warns about the fact that it is unused within the smc91cxx
driver code.
smc91cxx.c:191:1: error: unused function 'ether_cmp' [-Werror,-Wunused-function]
OK?
Index: smc91cxx.c
===================================================================
RCS file: /home/cvs/src/sys/dev/ic/smc91cxx.c,v
retrieving revision 1.34
diff -u -p -r1.34 smc91cxx.c
--- smc91cxx.c 7 Aug 2013 01:06:31 -0000 1.34
+++ smc91cxx.c 3 Dec 2013 22:25:54 -0000
@@ -186,18 +186,6 @@ void smc91cxx_resume(struct smc91cxx_sof
void smc91cxx_watchdog(struct ifnet *);
int smc91cxx_ioctl(struct ifnet *, u_long, caddr_t);
-static __inline int ether_cmp(void *, void *);
-static __inline int
-ether_cmp(va, vb)
- void *va, *vb;
-{
- u_int8_t *a = va;
- u_int8_t *b = vb;
-
- return ((a[5] != b[5]) || (a[4] != b[4]) || (a[3] != b[3]) ||
- (a[2] != b[2]) || (a[1] != b[1]) || (a[0] != b[0]));
-}
-
void
smc91cxx_attach(sc, myea)
struct smc91cxx_softc *sc;
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.