From patchwork Sat Dec 30 01:13:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 10137613 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 A30CE605B4 for ; Sat, 30 Dec 2017 01:21:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 957972D7A9 for ; Sat, 30 Dec 2017 01:21:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A3682D7D6; Sat, 30 Dec 2017 01:21:09 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4AAA32D7BB for ; Sat, 30 Dec 2017 01:21:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=SI9kbC2aJn9ejQgcTmABjV6+XePj6EGTcrVO5Riw7DQ=; b=UTs0SlP7n+TIpt8q80DxmK01f+ fuNHFt7JAryC6Jy+9+9qdEyIsq4hZBp5iNhtSJzHsYCV1eSAtQ5ay4MJnEREMFZZbzyP12uxK/4Gm i7D4vXP08OaYNT0ECHjj+//qA96Dzy0479H5wHmWqZ99dlIJ8hcrlUEQ67k/PZDP0eS8feMY/wICn z0GS0lDLRkSyj22fYiWgmC+TxuwGy9m0eheDWj0aFhpgKbeXLeTstD8HL21rhshota7i2x8ug7ric qZlb43VxghYcBHmgXbygoFLTnizDl5uCN1f0TgUmfk/GghYtq0yTQpTarolw68u8ynhDH59XJnAbc SBA3fdbg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eV5pf-00088N-QC; Sat, 30 Dec 2017 01:21:03 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eV5ib-0001Lq-9R for linux-arm-kernel@lists.infradead.org; Sat, 30 Dec 2017 01:14:50 +0000 Received: by mail-wm0-x243.google.com with SMTP id g75so50744820wme.0 for ; Fri, 29 Dec 2017 17:13:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=AY6lH4ksKLMgRwJiXnKA1XrUl50IfbmmyxzXD0B6xa4=; b=hMLgsdBOB018FolrPQ+AiF5c8XivszvOk0HjfD/KteGCRpLsi0E3V7Wl94Y19UiFhI fvj4LKA9oSDt9GSDrKDJm7p33QjVvyNyfZdISseVHUPTG5UR1AxZ7PajGhQ7i6G4k3XB h1kA9YArHOiQZFgieLkPnPUlytb4AtgLlsC+RqYi6QzQTx57XYJO9B2qWLOB/qlTS1hc CVrkt7jdKS0Hu6hQ7lmPC6DagPwTCvAxLAqrajBDDWwsB+sdAyedv+p2euY8wbMu0B8g UrwGLzorpuSLnHQKY0Wnz1zEHccn/e9GKslsX1AmEInX8q3VZH+B3S/5aruXULCThrEu jwGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=AY6lH4ksKLMgRwJiXnKA1XrUl50IfbmmyxzXD0B6xa4=; b=EAym/2RcGCnYHQ145h8Gi+2Papm5QXWS2zy8+zEyItLDUcfUSc+Q0IH1+y6gsUED2Q c/3G83tTwMZNwlbwKEn23Nvp27oKP2YKno5EfC47vMeFnZgD3MHYClF0ZqaOM/+agS/w IRYx0fRYrHgz4SO414fkCX9cZpoQ1d6IRqUrmnHLc00GuA6OAuP0Uc13FEHjNuKFu+bN 6zzZnXvx3ajW6gW0Pau0kYadxGEn1SJ6NZvfc/caOnP/xwaP/QG1kIP/MF45lIpV0S1H XOY9FQZbva3/nL3pZWpbgp0E88rux9q+U2EwZUfuFoTUBMPpsfUNHGB7EVhPnSapIjQi i+Hg== X-Gm-Message-State: AKGB3mLABG66owS6SsVtgqpBJJrxrealmDcEhU+yNitrOWSqNxTKlDQi GaV/9XIbIcovKjuKW+f+ww5Pcw== X-Google-Smtp-Source: ACJfBouZJrKelvT3GLRnTBNb0al83nHQq10n74NoT/0kvzuF/rCn1pbNUglds14ygIVBwCIwrK60vA== X-Received: by 10.80.140.33 with SMTP id p30mr46562041edp.19.1514596413985; Fri, 29 Dec 2017 17:13:33 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id h4sm29818268edb.16.2017.12.29.17.13.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 Dec 2017 17:13:33 -0800 (PST) From: Bryan O'Donoghue To: mturquette@baylibre.com, sboyd@codeaurora.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 22/33] clk: sirf: remove unnecessary long cast on return Date: Sat, 30 Dec 2017 01:13:01 +0000 Message-Id: <1514596392-22270-23-git-send-email-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514596392-22270-1-git-send-email-pure.logic@nexus-software.ie> References: <1514596392-22270-1-git-send-email-pure.logic@nexus-software.ie> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171229_171345_707127_895AD3B2 X-CRM114-Status: GOOD ( 10.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: pure.logic@nexus-software.ie, Barry Song , linux-arm-kernel@lists.infradead.org, Barry Song MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Due to the old function signature of clk_ops->round_rate pll_clk_round_rate does a cast of an internal unsigned long to a long. After updating clk_ops->round_rate() to be an unsigned long though the cast isn't necessary. Remove the cast now. Signed-off-by: Bryan O'Donoghue Cc: Michael Turquette Cc: Stephen Boyd Cc: Barry Song Cc: linux-clk@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: Barry Song --- drivers/clk/sirf/clk-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/sirf/clk-common.c b/drivers/clk/sirf/clk-common.c index 3ce6741..bfa3f4b 100644 --- a/drivers/clk/sirf/clk-common.c +++ b/drivers/clk/sirf/clk-common.c @@ -121,7 +121,7 @@ static unsigned long pll_clk_round_rate(struct clk_hw *hw, unsigned long rate, dividend = (u64)fin * nf; do_div(dividend, nr * od); - return (long)dividend; + return dividend; } static int pll_clk_set_rate(struct clk_hw *hw, unsigned long rate,