From patchwork Sat Sep 10 03:47:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 9324699 X-Patchwork-Delegate: sboyd@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6A88D607D3 for ; Sat, 10 Sep 2016 03:47:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F7D229F5D for ; Sat, 10 Sep 2016 03:47:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2F02E29FBC; Sat, 10 Sep 2016 03:47:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8C9E629F5D for ; Sat, 10 Sep 2016 03:47:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753113AbcIJDrn (ORCPT ); Fri, 9 Sep 2016 23:47:43 -0400 Received: from mail-pa0-f65.google.com ([209.85.220.65]:34276 "EHLO mail-pa0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752604AbcIJDrn (ORCPT ); Fri, 9 Sep 2016 23:47:43 -0400 Received: by mail-pa0-f65.google.com with SMTP id gi6so4659317pac.1 for ; Fri, 09 Sep 2016 20:47:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ingics-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=qm4t3pxGlcwuKc4uktIBnA7P6T0T39RFeOfxgf5lyJ8=; b=zN5HGzKqGAb2WQm4OOCT9SZ92Ec+COQYVaIgkTxUa6lqkSUIVGhxWBRT61Iz6PMUMf K8QJmaE+nuHp91VIr/uuNZ5AyrW6EDxnTbiapz2fRNlxEgUwTk6vlOrJ36L8rEl6YP09 A3tnqBUXvKDwG0mNezUD172N5dRFb0m8TodCYAvJMgcVj+8I6suucgw9QWidb9vEunSE LVItMGD3n7bvX8HDBujmpNDDijuYKO5vHXC2CW+Gkd2a0Vy/bfDu5REOUheeGEvaY0ML E36aoQ1YZHJ7C/B/ZwAeKlpXlfUM9LVlQrGvLL+g+YdNWLb/mzkMKoentDhvfhm/p78/ Db8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=qm4t3pxGlcwuKc4uktIBnA7P6T0T39RFeOfxgf5lyJ8=; b=JGp3PASI0skCKD7W+gkl4FyDuRNHxrf3qw3mVS2cAh/96NI0i1hcxJOW6//10QOBRu ORh8yXrY0AhAONkNz8ivUrt5pPAEF2CDIguQj9a8+kvNLrabHkwf9xsjA/92kKneXlIz I8W/K6Lln73lyW5WCL6LiYEftYxXlLsPjshRo3AijvVvCpMcBNg2Jq+e9w2El6hF3C+6 6Z/QL7w9tTc4MQWBp6MSx43HYdI5KNIOT+ppVjsV4pnbKwwd4mghddN4UiKRWBHsPXRc T72CfhWgLjX9HG7pHSevqBokkfYS4qNM4W213PoWmpVgw6E4oM+uMKmfKhQuWsQ9hMq6 RaKw== X-Gm-Message-State: AE9vXwN6gqqJftw6g/0qPAGuzC2HLxe6ojT+DTmCrJ02AuBQr6Mmcizp8tvYUuiE/eoqxw== X-Received: by 10.66.251.33 with SMTP id zh1mr12450104pac.55.1473479262207; Fri, 09 Sep 2016 20:47:42 -0700 (PDT) Received: from localhost.localdomain (118-171-143-41.dynamic.hinet.net. [118.171.143.41]) by smtp.gmail.com with ESMTPSA id n7sm8315686pfg.45.2016.09.09.20.47.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Sep 2016 20:47:40 -0700 (PDT) From: Axel Lin To: Stephen Boyd Cc: Michael Turquette , Andy Gross , Rajendra Nayak , Kevin Hilman , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, Axel Lin Subject: [PATCH RFT] clk: qcom: lcc-ipq806x: Fixup overriding val in regmap_read call Date: Sat, 10 Sep 2016 11:47:30 +0800 Message-Id: <1473479250-2225-1-git-send-email-axel.lin@ingics.com> X-Mailer: git-send-email 2.7.4 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Drop the assignment of regmap_read return code to val, so the code checks the value read. Signed-off-by: Axel Lin --- drivers/clk/qcom/lcc-ipq806x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/lcc-ipq806x.c b/drivers/clk/qcom/lcc-ipq806x.c index db3998e..977e98e 100644 --- a/drivers/clk/qcom/lcc-ipq806x.c +++ b/drivers/clk/qcom/lcc-ipq806x.c @@ -443,7 +443,7 @@ static int lcc_ipq806x_probe(struct platform_device *pdev) return PTR_ERR(regmap); /* Configure the rate of PLL4 if the bootloader hasn't already */ - val = regmap_read(regmap, 0x0, &val); + regmap_read(regmap, 0x0, &val); if (!val) clk_pll_configure_sr(&pll4, regmap, &pll4_config, true); /* Enable PLL4 source on the LPASS Primary PLL Mux */