]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
usb: xhci: remove unused argument from handle_port_status()
authorNiklas Neronin <niklas.neronin@linux.intel.com>
Wed, 26 Jun 2024 12:48:22 +0000 (15:48 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jun 2024 14:08:05 +0000 (16:08 +0200)
Argument struct 'xhci_interrupter *ir' is not used, and as a consequence
is removed.

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/20240626124835.1023046-9-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c

index c2605e89adb0fc513c975118e94837e293348ba5..e9130c7c2c538c39559133b2214b274cdbc7e67f 100644 (file)
@@ -1883,9 +1883,7 @@ static void xhci_cavium_reset_phy_quirk(struct xhci_hcd *xhci)
        } while (!(pll_lock_check & 0x1) && --retry_count);
 }
 
-static void handle_port_status(struct xhci_hcd *xhci,
-                              struct xhci_interrupter *ir,
-                              union xhci_trb *event)
+static void handle_port_status(struct xhci_hcd *xhci, union xhci_trb *event)
 {
        struct usb_hcd *hcd;
        u32 port_id;
@@ -2980,7 +2978,7 @@ static int xhci_handle_event_trb(struct xhci_hcd *xhci, struct xhci_interrupter
                handle_cmd_completion(xhci, &event->event_cmd);
                break;
        case TRB_PORT_STATUS:
-               handle_port_status(xhci, ir, event);
+               handle_port_status(xhci, event);
                break;
        case TRB_TRANSFER:
                handle_tx_event(xhci, ir, &event->trans_event);