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: 10137523 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 2C0306037D for ; Sat, 30 Dec 2017 01:17:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F1442B551 for ; Sat, 30 Dec 2017 01:17:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 13D962B55D; Sat, 30 Dec 2017 01:17: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=-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 0752F2B551 for ; Sat, 30 Dec 2017 01:17:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751176AbdL3BRG (ORCPT ); Fri, 29 Dec 2017 20:17:06 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:42305 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751174AbdL3BNf (ORCPT ); Fri, 29 Dec 2017 20:13:35 -0500 Received: by mail-wm0-f65.google.com with SMTP id b141so3834124wme.1 for ; Fri, 29 Dec 2017 17:13:34 -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=mUUOdsmGUb75w1knIhZNTQ+db1Hu9jzaOxCvXm1ZXT15wnsoS2vIAC38cCEYYB7+o8 FFWR4jv4JNFUT5Wtb1Y0uQLwBSnlHQq6u0/mB6XlLdJGNy0to8eksOpG7xdlICcsG+cH Yvm2EDZu+dpAmvs41n2tNdDBbiZImolTfS1RjPFK8L1dX5N4OR3zVkKtlipNLMmoEP5F ij6N9pGAck9BGhvnTJCvIMMUPTqBtU5qcNmz6E3oQoYy3dFqeq/+tOpCdt7XbEBgq5Je /tvSpMxdiEn4cKLwTuljmCbUaScCxDKC3FH7BRMnQVoD+95cHvDdkgSSKS32+zZ3xZ+5 OwMA== X-Gm-Message-State: AKGB3mI0Vok70asizy93TJfUgsMVNejno3G9mq+xyfUnpQ8JBGuUCuvZ KXLD69pZjabceTHwH3qZgf+1Dg== 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 Cc: pure.logic@nexus-software.ie, Barry Song , linux-arm-kernel@lists.infradead.org, Barry Song 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> 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 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,