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/57a68ed5aa2d
branches:  trunk
changeset: 379629:57a68ed5aa2d
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 383e626166c5 -r 57a68ed5aa2d 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 @@ usbd_iface_init(struct usbd_device *dev,
        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 @@ usbd_iface_fini(struct usbd_device *dev,
        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 383e626166c5 -r 57a68ed5aa2d 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 @@ usbd_dump_iface(struct usbd_interface *i
        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 383e626166c5 -r 57a68ed5aa2d 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 @@ struct usbd_interface {
        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