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 more dead code
details: https://anonhg.NetBSD.org/src/rev/3104a5245264
branches: trunk
changeset: 350536:3104a5245264
user: maya <maya%NetBSD.org@localhost>
date: Fri Jan 13 14:48:18 2017 +0000
description:
Remove more dead code
RAY_DEF_NWID is a constant string and so is the length, it's
pointless the length is larger than zero.
diffstat:
sys/dev/pcmcia/if_ray.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 889c9ceda959 -r 3104a5245264 sys/dev/pcmcia/if_ray.c
--- a/sys/dev/pcmcia/if_ray.c Fri Jan 13 14:41:27 2017 +0000
+++ b/sys/dev/pcmcia/if_ray.c Fri Jan 13 14:48:18 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ray.c,v 1.85 2017/01/12 17:11:22 maya Exp $ */
+/* $NetBSD: if_ray.c,v 1.86 2017/01/13 14:48:18 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.85 2017/01/12 17:11:22 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ray.c,v 1.86 2017/01/13 14:48:18 maya Exp $");
#include "opt_inet.h"
@@ -553,8 +553,7 @@
*/
memset(&sc->sc_dnwid, 0, sizeof(sc->sc_dnwid));
sc->sc_dnwid.i_len = strlen(RAY_DEF_NWID);
- if (sc->sc_dnwid.i_len > 0)
- memcpy(sc->sc_dnwid.i_nwid, RAY_DEF_NWID, sc->sc_dnwid.i_len);
+ 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));
sc->sc_omode = sc->sc_mode = RAY_MODE_DEFAULT;
sc->sc_countrycode = sc->sc_dcountrycode =
Home |
Main Index |
Thread Index |
Old Index