diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-12-01 17:06:35 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-12-04 07:50:40 +0100 |
commit | b28718717b10befac6f43eb5a1e075ee4fb4ef02 (patch) | |
tree | 98ff3c0aade5f2bd0d04bd12d00bf0d6afb9163e /drivers/usb | |
parent | 89cd6362e6ad4aa8663c41ac960f223a761385b4 (diff) | |
download | linux-stable-b28718717b10befac6f43eb5a1e075ee4fb4ef02.tar.gz linux-stable-b28718717b10befac6f43eb5a1e075ee4fb4ef02.tar.bz2 linux-stable-b28718717b10befac6f43eb5a1e075ee4fb4ef02.zip |
xhci: dbc: Replace custom return value with proper Linux error code
Replace the custom return value with proper Linux error code.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20231201150647.1307406-8-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/host/xhci-dbgcap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-dbgcap.c b/drivers/usb/host/xhci-dbgcap.c index c211c69e8041..779a564ad698 100644 --- a/drivers/usb/host/xhci-dbgcap.c +++ b/drivers/usb/host/xhci-dbgcap.c @@ -593,7 +593,7 @@ static int xhci_do_dbc_start(struct xhci_dbc *dbc) static int xhci_do_dbc_stop(struct xhci_dbc *dbc) { if (dbc->state == DS_DISABLED) - return -1; + return -EINVAL; writel(0, &dbc->regs->control); dbc->state = DS_DISABLED; |