Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp826981ybl; Fri, 24 Jan 2020 10:13:22 -0800 (PST) X-Google-Smtp-Source: APXvYqx7I5C79igGmZeEqBay9YmEhGfLvJ6wcDoHAzGrGy/HwFZ+0eKpwzm2UFG+JyxkWB2Q46yr X-Received: by 2002:aca:ef82:: with SMTP id n124mr70377oih.88.1579889601899; Fri, 24 Jan 2020 10:13:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579889601; cv=none; d=google.com; s=arc-20160816; b=o6huvOD5J7FAFW2eEfbU2dOx5TAPRalR9imJ87gCEXIS7m7NYmhXVyyW6etxpdZ/0L 2Cw2Ita3jWZA5i2RlyolepS9m4+XULtilXFpEqk0IfvhlIZC3W0nkHrcojFqYtw2teYC SxRzzR15TnKUSFIOPj7k+XRr9ca4DIWMc8JCjtqXUQZlJPyiTkRguk/VfgzWBL0vEn3m BW5pBpeV8Fc1+T39dUzp1M0Q5H3BXyVDUVuI5DkSjC0RYI5KUZyQFb71g9HRSSPN/Sdg m0BJkBvCwMoVl53f+qhfC0zoeoZyjgihzfg3aZkNqFXsx7qb2yNDvdF8kIQTZBm82Zpx bH4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Wfe6nqMrPjcsbZgCXQv56C12q3Ag7PBbLyEjzAgwEO8=; b=VVpEjQRwoWSBbw6BLqb1jNmjxekHOcYiIBJlNfFH+Rl2OB8/FAd9t9GLPX4tTnuLaM +mPbOIBwUgMD3CXsAA6XiXgVRtbEzj2tKxaGeXC5qNbpFRwYKC2iyw/eF2dQ8LqnKMv0 jlqxQ/fZTkK19LDtfSrFO2kSsMh9CI4ClQqNFazFb/6PTnEbe31PUPex1oJWcdwE5C/9 mQaxxthdS6iIk79yH3e629FPFJKDlbxF+FjRXjYThwNQ04DxwgWR2GKU/aLhm8wAno81 ytOvnKQcPw4Et3ba0VLSt6Uf9mV1HshEx+03QVuuZxNSMB5GcBpIRLTmK7D5aff5Q6Bd Omyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pC6wD87Z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i13si3002069oth.175.2020.01.24.10.13.09; Fri, 24 Jan 2020 10:13:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pC6wD87Z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391202AbgAXLWZ (ORCPT + 99 others); Fri, 24 Jan 2020 06:22:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:33684 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391195AbgAXLWW (ORCPT ); Fri, 24 Jan 2020 06:22:22 -0500 Received: from localhost (ip-213-127-102-57.ip.prioritytelecom.net [213.127.102.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6767E20718; Fri, 24 Jan 2020 11:22:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579864941; bh=t1fMeQ0Q+Zpo5xEOHE1aoeS1msL+zwYOGpA9Q9eaKdE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pC6wD87ZQB72p2YU3xWRiN1yYpTVdwuBS85eusgS/fSWClDKYCIAntZMgghV1GWU+ aHz5bnmW2P3C/kH49rxDH5jLi6E0vUQGV4DZzfYjgw14P1fJ4sv38c0Y5k4PS7aOH4 UPElyvs6Hs+Ts7XjhK/AigARDC5gtFEepMarBNdk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Colin Ian King , Kishon Vijay Abraham I , Sasha Levin Subject: [PATCH 4.19 408/639] phy: qcom-qusb2: fix missing assignment of ret when calling clk_prepare_enable Date: Fri, 24 Jan 2020 10:29:38 +0100 Message-Id: <20200124093138.168501901@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200124093047.008739095@linuxfoundation.org> References: <20200124093047.008739095@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King [ Upstream commit d98010817a26eba8d4d1e8a639e0b7d7f042308a ] The error return from the call to clk_prepare_enable is not being assigned to variable ret even though ret is being used to check if the call failed. Fix this by adding in the missing assignment. Addresses-Coverity: ("Logically dead code") Fixes: 891a96f65ac3 ("phy: qcom-qusb2: Add support for runtime PM") Signed-off-by: Colin Ian King Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sasha Levin --- drivers/phy/qualcomm/phy-qcom-qusb2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/qualcomm/phy-qcom-qusb2.c b/drivers/phy/qualcomm/phy-qcom-qusb2.c index 69c92843eb3b2..9b7ae93e9df1e 100644 --- a/drivers/phy/qualcomm/phy-qcom-qusb2.c +++ b/drivers/phy/qualcomm/phy-qcom-qusb2.c @@ -526,7 +526,7 @@ static int __maybe_unused qusb2_phy_runtime_resume(struct device *dev) } if (!qphy->has_se_clk_scheme) { - clk_prepare_enable(qphy->ref_clk); + ret = clk_prepare_enable(qphy->ref_clk); if (ret) { dev_err(dev, "failed to enable ref clk, %d\n", ret); goto disable_ahb_clk; -- 2.20.1