Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb usb(4): Nix unused struct usbd_interface::ui_priv.



details:   https://anonhg.NetBSD.org/src/rev/3ecbdd13ade1
branches:  trunk
changeset: 1021660:3ecbdd13ade1
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Jun 12 15:49:45 2021 +0000

description:
usb(4): Nix unused struct usbd_interface::ui_priv.

diffstat:

 sys/dev/usb/usb_subr.c |  6 ++----
 sys/dev/usb/usbdi.c    |  8 ++++----
 sys/dev/usb/usbdivar.h |  3 +--
 3 files changed, 7 insertions(+), 10 deletions(-)

diffs (80 lines):

diff -r 000e01a1ac79 -r 3ecbdd13ade1 sys/dev/usb/usb_subr.c
--- a/sys/dev/usb/usb_subr.c    Sat Jun 12 15:41:22 2021 +0000
+++ b/sys/dev/usb/usb_subr.c    Sat Jun 12 15:49:45 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usb_subr.c,v 1.259 2021/06/12 15:41:22 riastradh Exp $ */
+/*     $NetBSD: usb_subr.c,v 1.260 2021/06/12 15:49:45 riastradh Exp $ */
 /*     $FreeBSD: src/sys/dev/usb/usb_subr.c,v 1.18 1999/11/17 22:33:47 n_hibma Exp $   */
 
 /*
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usb_subr.c,v 1.259 2021/06/12 15:41:22 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usb_subr.c,v 1.260 2021/06/12 15:49:45 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -415,7 +415,6 @@
        ifc->ui_index = 0;
        ifc->ui_altindex = 0;
        ifc->ui_endpoints = NULL;
-       ifc->ui_priv = NULL;
        LIST_INIT(&ifc->ui_pipes);
        mutex_init(&ifc->ui_pipelock, MUTEX_DEFAULT, IPL_NONE);
 }
@@ -430,7 +429,6 @@
        KASSERT(ifc->ui_index == 0);
        KASSERT(ifc->ui_altindex == 0);
        KASSERT(ifc->ui_endpoints == NULL);
-       KASSERT(ifc->ui_priv == NULL);
        KASSERT(LIST_EMPTY(&ifc->ui_pipes));
 
        mutex_destroy(&ifc->ui_pipelock);
diff -r 000e01a1ac79 -r 3ecbdd13ade1 sys/dev/usb/usbdi.c
--- a/sys/dev/usb/usbdi.c       Sat Jun 12 15:41:22 2021 +0000
+++ b/sys/dev/usb/usbdi.c       Sat Jun 12 15:49:45 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usbdi.c,v 1.214 2021/06/12 15:41:22 riastradh Exp $    */
+/*     $NetBSD: usbdi.c,v 1.215 2021/06/12 15:49:45 riastradh Exp $    */
 
 /*
  * Copyright (c) 1998, 2012, 2015 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.214 2021/06/12 15:41:22 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.215 2021/06/12 15:49:45 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -141,8 +141,8 @@
        USBHIST_LOG(usbdebug, "     device = %#jx idesc = %#jx index = %jd",
            (uintptr_t)iface->ui_dev, (uintptr_t)iface->ui_idesc,
            iface->ui_index, 0);
-       USBHIST_LOG(usbdebug, "     altindex=%jd priv=%#jx",
-           iface->ui_altindex, (uintptr_t)iface->ui_priv, 0, 0);
+       USBHIST_LOG(usbdebug, "     altindex=%jd",
+           iface->ui_altindex, 0, 0, 0);
 }
 
 void
diff -r 000e01a1ac79 -r 3ecbdd13ade1 sys/dev/usb/usbdivar.h
--- a/sys/dev/usb/usbdivar.h    Sat Jun 12 15:41:22 2021 +0000
+++ b/sys/dev/usb/usbdivar.h    Sat Jun 12 15:49:45 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usbdivar.h,v 1.126 2021/06/12 14:43:27 riastradh Exp $ */
+/*     $NetBSD: usbdivar.h,v 1.127 2021/06/12 15:49:45 riastradh Exp $ */
 
 /*
  * Copyright (c) 1998, 2012 The NetBSD Foundation, Inc.
@@ -230,7 +230,6 @@
        int                     ui_index;
        int                     ui_altindex;
        struct usbd_endpoint   *ui_endpoints;
-       void                   *ui_priv;
        kmutex_t                ui_pipelock;
        LIST_HEAD(, usbd_pipe)  ui_pipes;
 };



Home | Main Index | Thread Index | Old Index