Skip to contentSkip to conversation

Input: ims-pcu - drop redundant driver-data assignment

PATCH Applied Johan Hovold 2 participants 2 messages Mar 18, 2021 – Mar 20, 2021

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

PATCH 1/1 Input: ims-pcu - drop redundant driver-data assignment

The driver data for the data interface has already been set by usb_driver_claim_interface() so drop the subsequent redundant assignment.

---
 drivers/input/misc/ims-pcu.c | 1 -
 1 file changed, 1 deletion(-)
drivers/input/misc/ims-pcu.c +0 -1
index 08b9b5cdb943..81de8c4e37d0 100644
@@ -2018,7 +2018,6 @@ static int ims_pcu_probe(struct usb_interface *intf,
 	}
 
 	usb_set_intfdata(pcu->ctrl_intf, pcu);
-	usb_set_intfdata(pcu->data_intf, pcu);
 
 	error = ims_pcu_buffers_alloc(pcu);
 	if (error)
Signature · 1 line
2.26.2
maintainer Applied
#1 lore raw
Quoted 5 lines · Johan Hovold

The driver data for the data interface has already been set by usb_driver_claim_interface() so drop the subsequent redundant assignment.

Applied, thank you.

Signature · 1 line
Dmitry