Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: gadget: s3c-hsudc.c: Remove unneeded condition

The removed condition is always true, since the endpoint descriptor is
set prior to calling the enable endpoint.

Signed-off-by: Ido Shayevitz <idos@codeaurora.org>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>

authored by

Ido Shayevitz and committed by
Felipe Balbi
109f0f71 0561ed44

+1 -1
+1 -1
drivers/usb/gadget/s3c-hsudc.c
··· 760 760 u32 ecr = 0; 761 761 762 762 hsep = our_ep(_ep); 763 - if (!_ep || !desc || hsep->ep.desc || _ep->name == ep0name 763 + if (!_ep || !desc || _ep->name == ep0name 764 764 || desc->bDescriptorType != USB_DT_ENDPOINT 765 765 || hsep->bEndpointAddress != desc->bEndpointAddress 766 766 || ep_maxpacket(hsep) < usb_endpoint_maxp(desc))