coreboot/src/drivers/usb
John Zhao 83aac13590 drivers/usb: Replace return value -10 with variable
Coverity detects that value assigned to variable "ret" is overwritten
before it is used. Fix the issue by returning right value.

Found-by: Coverity CID 1255942, 1241836
TEST=None

Signed-off-by: John Zhao <john.zhao@intel.com>
Change-Id: I2e1fb5400ff64c6178bb30601896780f8d67b5c6
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44185
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2020-08-17 06:21:10 +00:00
..
acpi acpi_device: Replace polarity with active_low in acpi_gpio for GpioIo 2020-07-02 19:12:46 +00:00
pci_xhci drivers/usb: Avoid NULL pointer dereference 2020-07-26 21:04:51 +00:00
console.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
ehci.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
ehci_debug.c drivers/usb: Replace return value -10 with variable 2020-08-17 06:21:10 +00:00
ehci_debug.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
gadget.c src/drivers/usb/gadget.c: Add missing include 2020-07-14 16:12:53 +00:00
Kconfig usbdebug: Make the EHCI debug console work in the bootblock 2019-01-06 14:05:20 +00:00
Makefile.inc drivers/usb: Enable EHCI debug during verstage 2019-10-16 08:29:30 +00:00
pci_ehci.c src: Remove unused '#include <stddef.h>' 2020-05-13 08:48:50 +00:00
usb_ch9.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00