Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pcmcia Remove dead code. RAY_DEF_NWID is a constant ...



details:   https://anonhg.NetBSD.org/src/rev/9e88908896c3
branches:  trunk
changeset: 820618:9e88908896c3
user:      maya <maya%NetBSD.org@localhost>
date:      Thu Jan 12 17:11:22 2017 +0000

description:
Remove dead code. RAY_DEF_NWID is a constant string, its length will never
be above 32.

diffstat:

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

diffs (27 lines):

diff -r ee39406fbd7a -r 9e88908896c3 sys/dev/pcmcia/if_ray.c
--- a/sys/dev/pcmcia/if_ray.c   Thu Jan 12 16:47:18 2017 +0000
+++ b/sys/dev/pcmcia/if_ray.c   Thu Jan 12 17:11:22 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ray.c,v 1.84 2016/07/07 06:55:42 msaitoh Exp $      */
+/*     $NetBSD: if_ray.c,v 1.85 2017/01/12 17:11:22 maya Exp $ */
 
 /*
  * Copyright (c) 2000 Christian E. Hopps
@@ -57,7 +57,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ray.c,v 1.84 2016/07/07 06:55:42 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ray.c,v 1.85 2017/01/12 17:11:22 maya Exp $");
 
 #include "opt_inet.h"
 
@@ -553,8 +553,6 @@
         */
        memset(&sc->sc_dnwid, 0, sizeof(sc->sc_dnwid));
        sc->sc_dnwid.i_len = strlen(RAY_DEF_NWID);
-       if (sc->sc_dnwid.i_len > IEEE80211_NWID_LEN)
-               sc->sc_dnwid.i_len = IEEE80211_NWID_LEN;
        if (sc->sc_dnwid.i_len > 0)
                memcpy(sc->sc_dnwid.i_nwid, RAY_DEF_NWID, sc->sc_dnwid.i_len);
        memcpy(&sc->sc_cnwid, &sc->sc_dnwid, sizeof(sc->sc_cnwid));



Home | Main Index | Thread Index | Old Index