Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp662878pxj; Tue, 18 May 2021 11:17:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvelWbZecoWNVss5bflDQlwe8XAghHC/H1LcB3Uv9cyyObaye4reMXPA0KMTIf0CIwOWj8 X-Received: by 2002:a50:e702:: with SMTP id a2mr8800073edn.3.1621361833232; Tue, 18 May 2021 11:17:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621361833; cv=none; d=google.com; s=arc-20160816; b=EuUN5fD4UltBm09Y9uW9+E9/GKhr7hFS0uNOHnZeLhhMRbfcZqJZvgJbv8i22mtcne m/ELpfU5N9+1xFzjqKf3CjFSU2L5y2E53i8M/+O4jU+KOd7Xo6efmripiQGWqjNFgPxu btagGp0y12SWIi6fXraNC2sBU/veKcSEQpPE/tAKlblm+reO5ezwibk2FF5wOIWUyC4v LA7If3IL28RrcmU8anx/cGLTIKacheujg7j0beUXiNOEaeL3l3MqiFAe1DKa8lsNnGCt cQ5hxyS6spzJ5zp2/k5WFhjxYNXe132bwHAeqCHLjnvRw7tgStVEUUZydsqKA+BYe69e Xvsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KtxFaUM5SNV3H1ZCWvfuzDKnYM25q0rifsQ/pWFYDxw=; b=HvIHu5q7CcINprsIZyrLjoJj2RECnKOMV/My+G1bkR2jEemOcv4qEkQ0HWz/gOyVdv VMsw4GOerlJGMfo+rBeMQT/LMKFBuCVPxm/RqSSA4AU7a+pX6vB1UQpB6TKtYCd0TxKh LckiXCNcGGvabQRoll8oLQt59tP9rrE+WvBDA7vQqPA5aC6TJJJUG2bT3YumczbNFcye PQoEqb2AXZmUV2Ge9zm2Y8HRNf9NJGhMRwP1gcIPmCUqvwuTSb6imDJ8Mql3rAL/lpWb qDF6WmXznUE0CVn9wno6kVbHiDchCt8hRUsy4aPj0Ze6SZ6qHdr3+5oKvjFG3HwT0CAd WOXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rxeOy7MG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z15si19255944edc.219.2021.05.18.11.16.50; Tue, 18 May 2021 11:17:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rxeOy7MG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345254AbhEQQMc (ORCPT + 99 others); Mon, 17 May 2021 12:12:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:34740 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238526AbhEQPsK (ORCPT ); Mon, 17 May 2021 11:48:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A0B6461437; Mon, 17 May 2021 14:44:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621262688; bh=Vg1h4/8J8wvPIdZl8ejo0BKFj8ednOpcj2Dpo2elCtc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rxeOy7MGiH8Bvc11Lp3BqMBTIKBnQ7340kFwIvgoCwnH1zXXpZYUYTbBFcr5iZTqU L4vaG+SvlBpe0N9YF7ma3MD/56MheoHFChFDtOWJFxXA1dyc9W57zC3lxUb2gGnRMb 5EYi2KNIZrF96qCwE6d+ZaOX8mPqNq3iacS07rNY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , Sasha Levin Subject: [PATCH 5.10 228/289] usb: musb: Fix an error message Date: Mon, 17 May 2021 16:02:33 +0200 Message-Id: <20210517140312.838938208@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140305.140529752@linuxfoundation.org> References: <20210517140305.140529752@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe JAILLET [ Upstream commit d9ff1096a840dddea3d5cfa2149ff7da9f499fb2 ] 'ret' is known to be 0 here. Initialize 'ret' with the expected error code before using it. Fixes: 0990366bab3c ("usb: musb: Add support for MediaTek musb controller") Signed-off-by: Christophe JAILLET Link: https://lore.kernel.org/r/69f514dc7134e3c917cad208e73cc650cb9e2bd6.1620159879.git.christophe.jaillet@wanadoo.fr Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/usb/musb/mediatek.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/musb/mediatek.c b/drivers/usb/musb/mediatek.c index eebeadd26946..6b92d037d8fc 100644 --- a/drivers/usb/musb/mediatek.c +++ b/drivers/usb/musb/mediatek.c @@ -518,8 +518,8 @@ static int mtk_musb_probe(struct platform_device *pdev) glue->xceiv = devm_usb_get_phy(dev, USB_PHY_TYPE_USB2); if (IS_ERR(glue->xceiv)) { - dev_err(dev, "fail to getting usb-phy %d\n", ret); ret = PTR_ERR(glue->xceiv); + dev_err(dev, "fail to getting usb-phy %d\n", ret); goto err_unregister_usb_phy; } -- 2.30.2