]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
usb: xhci: remove unused variables from struct 'xhci_hcd'
authorNiklas Neronin <niklas.neronin@linux.intel.com>
Thu, 5 Sep 2024 14:32:54 +0000 (17:32 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Sep 2024 14:39:22 +0000 (16:39 +0200)
Variables 'max_slots', 'max_ports', 'isoc_threshold' and 'event_ring_max'
are never set or used. Thus, remove them.

Signed-off-by: Niklas Neronin <niklas.neronin@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20240905143300.1959279-7-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci.h

index ae4b50b01284ee024a27265750730ffe0d291949..6f8cecc789d6d3b4b480bea9d0042db292a3862a 100644 (file)
@@ -1500,13 +1500,9 @@ struct xhci_hcd {
        /* packed release number */
        u8              sbrn;
        u16             hci_version;
-       u8              max_slots;
        u16             max_interrupters;
-       u8              max_ports;
-       u8              isoc_threshold;
        /* imod_interval in ns (I * 250ns) */
        u32             imod_interval;
-       int             event_ring_max;
        /* 4KB min, 128MB max */
        int             page_size;
        /* Valid values are 12 to 20, inclusive */