mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
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>
This commit is contained in:
parent
89cd6362e6
commit
b28718717b
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user