OSDN Git Service

usb: cdns3: Variable 'length' set but not used
authorPawel Laszczak <pawell@cadence.com>
Mon, 12 Oct 2020 06:45:48 +0000 (08:45 +0200)
committerPeter Chen <peter.chen@nxp.com>
Wed, 28 Oct 2020 07:25:59 +0000 (15:25 +0800)
commitdefe40af1a7143a0538d7c3e87224459eea0a877
tree1b05924c487b37b291a7124ba5cc9134e30a5571
parent3650b228f83adda7e5ee532e2b90429c03f7b9ec
usb: cdns3: Variable 'length' set but not used

Patch removes not used variable 'length' from
cdns3_wa2_descmiss_copy_data function.

Fixes: 141e70fef4ee ("usb: cdns3: gadget: need to handle sg case for workaround 2 case")
Acked-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/cdns3/gadget.c