Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic ifdef out unused code.



details:   https://anonhg.NetBSD.org/src/rev/50e6a5e9265b
branches:  trunk
changeset: 345961:50e6a5e9265b
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jun 17 17:03:20 2016 +0000

description:
ifdef out unused code.

diffstat:

 sys/dev/ic/rt2860.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 9f1c063994fe -r 50e6a5e9265b sys/dev/ic/rt2860.c
--- a/sys/dev/ic/rt2860.c       Fri Jun 17 16:07:40 2016 +0000
+++ b/sys/dev/ic/rt2860.c       Fri Jun 17 17:03:20 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rt2860.c,v 1.15 2016/06/17 15:38:54 christos Exp $     */
+/*     $NetBSD: rt2860.c,v 1.16 2016/06/17 17:03:20 christos Exp $     */
 /*     $OpenBSD: rt2860.c,v 1.90 2016/04/13 10:49:26 mpi Exp $ */
 
 /*-
@@ -23,7 +23,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rt2860.c,v 1.15 2016/06/17 15:38:54 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rt2860.c,v 1.16 2016/06/17 17:03:20 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/sockio.h>
@@ -2741,6 +2741,7 @@
        return 0;
 }
 
+#ifdef HW_CRYPTO
 static int
 rt2860_set_key(struct ieee80211com *ic, const struct ieee80211_key *ck,
     const uint8_t *mac)
@@ -2864,6 +2865,7 @@
        }
        return 1;
 }
+#endif
 
 static int8_t
 rt2860_rssi2dbm(struct rt2860_softc *sc, uint8_t rssi, uint8_t rxchain)



Home | Main Index | Thread Index | Old Index