Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp61520pxj; Mon, 17 May 2021 20:59:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOyxzhYJkzjhNOcV4Ouw5ZK/TboCZyTCP2KThhNzlyAomMZbbyKko1XM/4nEhqHILWZ9KK X-Received: by 2002:a17:906:aac8:: with SMTP id kt8mr3734388ejb.402.1621310341071; Mon, 17 May 2021 20:59:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621310341; cv=none; d=google.com; s=arc-20160816; b=EVYva3Tdu7ROOWzm+hd7a/xzUFS1t33GbinaLJi/6HkW7CQXeLyEYTyBeuqrdZARtK qYWU6GP0F1M1UaQprIOfyDJRMf+8TeAMztVnWC/hmkv8HTRHHNNlszcJmwqs6IPMQm32 pRA189ip9DUVrlPdL6EmnEUhtUuVXbERudMu/pT+I+SxvWbDrY3mxTJioYrRfNInDhAt Rordj+BdhHUK8RTvIqSvvSUQUeqFxkm+PcCdTs6+V8p78bFfKepi82oogVhGlShBSxrV fgv4Uf61Ahtjoj5nejBoVLp3lSWuHLJlfgPudhfXqXZnaEBDrTPzhQXHt9+ILMBta/ZZ o65Q== 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=qW2Tmje3EJJfmpLBYkRqP1xB72DEh1/EWmW5pbh2Im4U6oB8/QrTJ53lJuJMtIoZTr qhPcTFxE8w1DNU+vf5dsrFtOfnImHjr5AfXEVznUsmsA3z5zVkmuNAGgNFjsF8AyBVbH 658Jape7zjAF5Bu/4i+1CTKyiHaz4yKp9i3BrQDRVlqWeQO/Gm6I444CKVYdDaeGIt67 px1p33VdDdYxfoqNoqP3nNZp/fST+ncnsYJPeSeQRuZawfAHb6hji5vzQJ7V6MoV5JnR G1qhppSVUzU+UuU98L98V6rxiwPjh8g7+vzSCX4cDueOAy5RVkQ0NoJ14GnaALubcef8 eumA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZT9jvTfm; 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 z22si3002395edm.203.2021.05.17.20.58.38; Mon, 17 May 2021 20:59:01 -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=ZT9jvTfm; 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 S240071AbhEQOlZ (ORCPT + 99 others); Mon, 17 May 2021 10:41:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:34224 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240887AbhEQOfX (ORCPT ); Mon, 17 May 2021 10:35:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E93406192D; Mon, 17 May 2021 14:17:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621261027; bh=Vg1h4/8J8wvPIdZl8ejo0BKFj8ednOpcj2Dpo2elCtc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZT9jvTfm2IKOSsQ+1RPdOuF3fbVL6ky+xQCoR0Cifr6IwCGcECC7cu6yuF8BMFmCz s85SJDXFPWPw90CL3LGuiA8NxaiJkoGAE7b/sNonCPX8tO3RaxEcK/d0QrUhB05Ob1 9I/aOxQt2/vma3cR5a2IR5+Rfw4u2H9OuadTzn9U= 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.12 293/363] usb: musb: Fix an error message Date: Mon, 17 May 2021 16:02:39 +0200 Message-Id: <20210517140312.500085316@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140302.508966430@linuxfoundation.org> References: <20210517140302.508966430@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