From patchwork Mon Dec 4 10:45:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathias Nyman X-Patchwork-Id: 13478171 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="eiXoLAI0" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50771D5 for ; Mon, 4 Dec 2023 02:44:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701686680; x=1733222680; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xmeDhVNiYm2qHg1elyDyXQ7PYx4JHfJgMZPurWOb1wA=; b=eiXoLAI0ylKhOoVwZMHdZu6frS4ev8Qrem1jz/dR62twc+EUnS2/YXiD cIQFA1MplTZt91bSQS79+ZirHMQbRk8CnFGDTqgs4E6Xwqhqd/s4N2pWg NuB2N5vifwWdVJ2jHXIY1Wjn7Tm6/C4zsajyP5Mxfy7kGpOFdsIYMgwDR FPfb5LamACPDsABSyNeEwId4PsWUY2QAAwjohqa3yKtKAU5o3eHleIulR dvsZxlJu5gMMkJ49vlbcQXL+H0Fy93i/fXyIjLQ2FwjmCPcLF2sMS5uPJ gs4P5846VPAP16vJ27ph/F/lA3YP6RRM3WTdPS6N82XU9w6/ZCkdJkTqF A==; X-IronPort-AV: E=McAfee;i="6600,9927,10913"; a="15260660" X-IronPort-AV: E=Sophos;i="6.04,249,1695711600"; d="scan'208";a="15260660" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2023 02:44:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10913"; a="861338905" X-IronPort-AV: E=Sophos;i="6.04,249,1695711600"; d="scan'208";a="861338905" Received: from mattu-haswell.fi.intel.com ([10.237.72.199]) by FMSMGA003.fm.intel.com with ESMTP; 04 Dec 2023 02:44:33 -0800 From: Mathias Nyman To: Cc: , Andy Shevchenko , Mathias Nyman Subject: [PATCH v2 07/18] xhci: dbc: Replace custom return value with proper Linux error code Date: Mon, 4 Dec 2023 12:45:23 +0200 Message-Id: <20231204104534.1335903-8-mathias.nyman@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231204104534.1335903-1-mathias.nyman@linux.intel.com> References: <20231204104534.1335903-1-mathias.nyman@linux.intel.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Andy Shevchenko Replace the custom return value with proper Linux error code. Signed-off-by: Andy Shevchenko Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-dbgcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;