android_kernel_samsung_a7y1.../drivers/usb/renesas_usbhs
Yoshihiro Shimoda 321b8f745d usb: renesas_usbhs: gadget: fix unused-but-set-variable warning
commit b7d44c36a6f6d956e1539e0dd42f98b26e5a4684 upstream.

The commit b8b9c974afee ("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: b8b9c974afee ("usb: renesas_usbhs: gadget: disable all eps when the driver stops")
Fixes: 11432050f070 ("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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-06 11:37:21 +02:00
..
common.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
common.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fifo.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fifo.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mod_gadget.c usb: renesas_usbhs: gadget: fix unused-but-set-variable warning 2020-04-06 11:37:21 +02:00
mod_host.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mod.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mod.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pipe.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pipe.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rcar2.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rcar2.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30