2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-19 02:34:01 +08:00
linux-next/drivers/usb/cdns3
Colin Ian King 4d2233ecec usb: cdns3: remove redundant assignment to ret on error exit path
In the case where an allocation fails for priv_ep ret is
assigned -ENOMEM and the code exits via the exit path 'err'.
The exit path returns -ENOMEM without using variable ret, so
the assingment is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20190902184334.27406-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-09-03 15:46:46 +02:00
..
cdns3-pci-wrap.c
core.c
core.h
debug.h
drd.c
drd.h
ep0.c usb: cdns3: Fix Wunused-but-set-variable warning 2019-09-03 15:46:45 +02:00
gadget-export.h
gadget.c usb: cdns3: remove redundant assignment to ret on error exit path 2019-09-03 15:46:46 +02:00
gadget.h
host-export.h
host.c
Kconfig
Makefile
trace.c
trace.h