UPSTREAM: usb: dwc2: Fix issues in dwc2_complete_non_isoc_xfer_ddma()
authorJohn Youn <johnyoun@synopsys.com>
Tue, 1 Mar 2016 01:53:35 +0000 (17:53 -0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 3 Jan 2017 10:48:30 +0000 (18:48 +0800)
commit735f185540ad2163d7b3708fc67d8d58b4d2d03a
tree1315f7a46c66cdcaa2c7f779e01a9b13455560a6
parent08d26ac585e833904a236b629e2172c302971807
UPSTREAM: usb: dwc2: Fix issues in dwc2_complete_non_isoc_xfer_ddma()

Fixes a static analysis issue in dwc2_complete_non_isoc_xfer_ddma(). The
qtd was being passed to a function after being freed. It was not being
used in the function so this doesn't fix any bugs. But it fixes up the
warning and makes the code safer by setting qtd to NULL and not using it
at all.

Change-Id: I5224d5b7854c23cc0d0931b5a131f93b9a2ce8c8
Reported-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit 1fc659894994c7faa67e51a4b5a981ab4cf0f3a5)
drivers/usb/dwc2/hcd_ddma.c