forked from luck/tmp_suning_uos_patched
Input: gtco - drop redundant variable reinit
Drop the second, redundant reinitialisation of the endpoint-descriptor pointer from probe. Signed-off-by: Johan Hovold <johan@kernel.org> Acked-by: Vladis Dronov <vdronov@redhat.com> Link: https://lore.kernel.org/r/20191210113737.4016-7-johan@kernel.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
3563c629fb
commit
cea7991144
|
@ -970,8 +970,6 @@ static int gtco_probe(struct usb_interface *usbinterface,
|
||||||
input_dev->dev.parent = &usbinterface->dev;
|
input_dev->dev.parent = &usbinterface->dev;
|
||||||
|
|
||||||
/* Setup the URB, it will be posted later on open of input device */
|
/* Setup the URB, it will be posted later on open of input device */
|
||||||
endpoint = &usbinterface->cur_altsetting->endpoint[0].desc;
|
|
||||||
|
|
||||||
usb_fill_int_urb(gtco->urbinfo,
|
usb_fill_int_urb(gtco->urbinfo,
|
||||||
udev,
|
udev,
|
||||||
usb_rcvintpipe(udev,
|
usb_rcvintpipe(udev,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user