Skip to contentSkip to conversation

Input: xpad - remove unused xpad_init_output intf parameter

PATCH New Tobias Klauser 1 participant 1 message May 5

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Input: xpad - remove unused xpad_init_output intf parameter

The intf parameter to xpad_init_output is unused since commit c01b5e7464f0 ("Input: xpad - don't depend on endpoint order"). Remove it.

---
 drivers/input/joystick/xpad.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/input/joystick/xpad.c +3 -3
index feb8f368f834..4c5528eb94b3 100644
@@ -1388,8 +1388,8 @@ static void xpad_irq_out(struct urb *urb)
 	}
 }
 
-static int xpad_init_output(struct usb_interface *intf, struct usb_xpad *xpad,
-			struct usb_endpoint_descriptor *ep_irq_out)
+static int xpad_init_output(struct usb_xpad *xpad,
+			    struct usb_endpoint_descriptor *ep_irq_out)
 {
 	int error;
 
@@ -2136,7 +2136,7 @@ static int xpad_probe(struct usb_interface *intf, const struct usb_device_id *id
 		goto err_free_in_urb;
 	}
 
-	error = xpad_init_output(intf, xpad, ep_irq_out);
+	error = xpad_init_output(xpad, ep_irq_out);
 	if (error)
 		goto err_free_in_urb;
 
Signature · 1 line
2.52.0