Skip to content

Commit ec3cdfd

Browse files
Epicuriusgregkh
authored andcommitted
usb: xhci: remove unused argument from xhci_handle_cmd_config_ep()
Argument u32 'cmd_comp_code' is not used, and as a consequence is removed. Signed-off-by: Niklas Neronin <[email protected]> Signed-off-by: Mathias Nyman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 3dd91ff commit ec3cdfd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/usb/host/xhci-ring.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,8 +1516,7 @@ static void xhci_handle_cmd_disable_slot(struct xhci_hcd *xhci, int slot_id)
15161516
xhci_free_device_endpoint_resources(xhci, virt_dev, true);
15171517
}
15181518

1519-
static void xhci_handle_cmd_config_ep(struct xhci_hcd *xhci, int slot_id,
1520-
u32 cmd_comp_code)
1519+
static void xhci_handle_cmd_config_ep(struct xhci_hcd *xhci, int slot_id)
15211520
{
15221521
struct xhci_virt_device *virt_dev;
15231522
struct xhci_input_control_ctx *ctrl_ctx;
@@ -1766,7 +1765,7 @@ static void handle_cmd_completion(struct xhci_hcd *xhci,
17661765
break;
17671766
case TRB_CONFIG_EP:
17681767
if (!cmd->completion)
1769-
xhci_handle_cmd_config_ep(xhci, slot_id, cmd_comp_code);
1768+
xhci_handle_cmd_config_ep(xhci, slot_id);
17701769
break;
17711770
case TRB_EVAL_CONTEXT:
17721771
break;

0 commit comments

Comments
 (0)