Files
linux/drivers
Yoshihiro Shimoda 7bbba61347 usb: renesas_usbhs: gadget: fix unused-but-set-variable warning
[ Upstream commit b7d44c36a6 ]

The commit b8b9c974af ("usb: renesas_usbhs: gadget: disable all eps
when the driver stops") causes the unused-but-set-variable warning.
But, if the usbhsg_ep_disable() will return non-zero value, udc/core.c
doesn't clear the ep->enabled flag. So, this driver should not return
non-zero value, if the pipe is zero because this means the pipe is
already disabled. Otherwise, the ep->enabled flag is never cleared
when the usbhsg_ep_disable() is called by the renesas_usbhs driver first.

Fixes: b8b9c974af ("usb: renesas_usbhs: gadget: disable all eps when the driver stops")
Fixes: 11432050f0 ("usb: renesas_usbhs: gadget: fix NULL pointer dereference in ep_disable()")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-11-10 07:42:50 -08:00
..
2018-07-22 14:27:36 +02:00
2018-02-25 11:05:55 +01:00
2018-08-22 07:47:14 +02:00
2017-09-09 17:39:41 +02:00
2018-08-24 13:12:32 +02:00
2016-09-20 20:57:12 +10:00
2018-07-25 11:24:01 +02:00
2018-10-03 17:01:42 -07:00