Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Remove set but not used sc_flags.



details:   https://anonhg.NetBSD.org/src/rev/6ff1ace19109
branches:  trunk
changeset: 318581:6ff1ace19109
user:      maya <maya%NetBSD.org@localhost>
date:      Mon Apr 30 01:14:07 2018 +0000
description:
Remove set but not used sc_flags.

Built tested only.

diffstat:

 sys/dev/usb/if_zyd.c    |  6 ++----
 sys/dev/usb/if_zydreg.h |  5 +----
 2 files changed, 3 insertions(+), 8 deletions(-)

diffs (55 lines):

diff -r e529e3e1aef2 -r 6ff1ace19109 sys/dev/usb/if_zyd.c
--- a/sys/dev/usb/if_zyd.c      Mon Apr 30 01:10:13 2018 +0000
+++ b/sys/dev/usb/if_zyd.c      Mon Apr 30 01:14:07 2018 +0000
@@ -1,5 +1,5 @@
 /*     $OpenBSD: if_zyd.c,v 1.52 2007/02/11 00:08:04 jsg Exp $ */
-/*     $NetBSD: if_zyd.c,v 1.45 2018/01/21 13:57:12 skrll Exp $        */
+/*     $NetBSD: if_zyd.c,v 1.46 2018/04/30 01:14:07 maya Exp $ */
 
 /*-
  * Copyright (c) 2006 by Damien Bergamini <damien.bergamini%free.fr@localhost>
@@ -23,7 +23,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_zyd.c,v 1.45 2018/01/21 13:57:12 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_zyd.c,v 1.46 2018/04/30 01:14:07 maya Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -296,7 +296,6 @@
        }
 
        firmware_free(fw, size);
-       sc->sc_flags |= ZD1211_FWLOADED;
 
        /* complete the attach process */
        if ((error = zyd_complete_attach(sc)) == 0)
@@ -315,7 +314,6 @@
 
        sc->sc_dev = self;
        sc->sc_udev = uaa->uaa_device;
-       sc->sc_flags = 0;
 
        aprint_naive("\n");
        aprint_normal("\n");
diff -r e529e3e1aef2 -r 6ff1ace19109 sys/dev/usb/if_zydreg.h
--- a/sys/dev/usb/if_zydreg.h   Mon Apr 30 01:10:13 2018 +0000
+++ b/sys/dev/usb/if_zydreg.h   Mon Apr 30 01:14:07 2018 +0000
@@ -1,5 +1,5 @@
 /*     $OpenBSD: if_zydreg.h,v 1.19 2006/11/30 19:28:07 damien Exp $   */
-/*     $NetBSD: if_zydreg.h,v 1.8 2016/04/23 10:15:32 skrll Exp $      */
+/*     $NetBSD: if_zydreg.h,v 1.9 2018/04/30 01:14:07 maya Exp $       */
 
 /*-
  * Copyright (c) 2006 by Damien Bergamini <damien.bergamini%free.fr@localhost>
@@ -1185,9 +1185,6 @@
        struct usb_task                 sc_task;
        struct usbd_device *            sc_udev;
        struct usbd_interface *         sc_iface;
-       int                             sc_flags;
-#define ZD1211_FWLOADED (1 << 0)
-
 
        enum ieee80211_state            sc_state;
        int                             sc_arg;



Home | Main Index | Thread Index | Old Index