The bit of code that calls this function is #if 0'd out so leave the function
there but #if 0 it out as well.

atw.c:3021:1: error: unused function 'atw_hw_decrypted' 
[-Werror,-Wunused-function]

OK?


Index: atw.c
===================================================================
RCS file: /home/cvs/src/sys/dev/ic/atw.c,v
retrieving revision 1.78
diff -u -p -r1.78 atw.c
--- atw.c       26 Nov 2013 09:50:32 -0000      1.78
+++ atw.c       3 Dec 2013 22:30:22 -0000
@@ -3017,6 +3017,7 @@ atw_linkintr(struct atw_softc *sc, u_int
        }
 }
 
+#if 0
 static __inline int
 atw_hw_decrypted(struct atw_softc *sc, struct ieee80211_frame *wh)
 {
@@ -3026,6 +3027,7 @@ atw_hw_decrypted(struct atw_softc *sc, s
                return 0;
        return (sc->sc_wepctl & ATW_WEPCTL_WEPRXBYP) == 0;
 }
+#endif
 
 /*
  * atw_rxintr:

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Reply via email to