aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorYoshihiro Shimoda <[email protected]>2017-07-28 10:28:57 +0000
committerFelipe Balbi <[email protected]>2017-08-03 09:33:05 +0000
commitb7d44c36a6f6d956e1539e0dd42f98b26e5a4684 (patch)
tree33a3e4b37c21ed3e0b37bbf363033519bfa04e08 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentusb: renesas_usbhs: Fix UGCTRL2 value for R-Car Gen3 (diff)
downloadkernel-b7d44c36a6f6d956e1539e0dd42f98b26e5a4684.tar.gz
kernel-b7d44c36a6f6d956e1539e0dd42f98b26e5a4684.zip
usb: renesas_usbhs: gadget: fix unused-but-set-variable warning
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 <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions