From patchwork Mon Jan 1 19:34:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 10139323 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 08FFE60362 for ; Mon, 1 Jan 2018 19:36:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EDDF9285A4 for ; Mon, 1 Jan 2018 19:36:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E27FF285AF; Mon, 1 Jan 2018 19:36:49 +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 69FE8285A4 for ; Mon, 1 Jan 2018 19:36:49 +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=Urryn9BWuurv22KNJP9FR/nRyx IoOAtCgnydB88FKeJ2ONO45a5MtRpDs5cIiSrHbCjkmi4fVgQKTGOL3eyO/emYssQ9iJwHxeJEhFy 0tFz0N6pY5moxs+M4c3f78lJzO4xBpf2pfdKLveLyE5g38znqpspZR9MfWc7Sew6vH0N5T1MwsQPM qGOxtjuLfWd/t35pDGH/3qN9bhjNCgqGb5hwmaoUnPwCyfZzuAzYZOmcKc3k7jSxRXsSeycOHoG0e e2PbJfMqjUqq7lz4tCPw/uODkUm13vr0E4YJL32hZZMc8Tj0BVypne1TcYdIUt0stMIvFj05902FM e/cNZ0RA==; 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 1eW5t7-0000HW-B3; Mon, 01 Jan 2018 19:36:45 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eW5rm-0007pn-Cl for linux-arm-kernel@lists.infradead.org; Mon, 01 Jan 2018 19:35:24 +0000 Received: by mail-wm0-x242.google.com with SMTP id i11so57899756wmf.4 for ; Mon, 01 Jan 2018 11:35:11 -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=B6dIDVFFirao4Ye4CjMLnRle50S57nbxc8t5s0RVnihwZc8QS3expE2XqrK1U0/KO7 3NLpJnGgbPriDrcP6UA0Li+QFq5iQ9DJW6J3m4Gru06gLt5nw0S7EE2+qBWmMTZ6RCIe TXz0cdvHxsoBDcVJKF4HeER3xsdY7nAA2MbQJFOBVNzrs8oJVKlbkqlzNLYmZ94sYsle I4ystzO+T1ADJbKgiqm/0zhHy1PlMLg3kciqTDgPKOsTPcr0IbWHz8RtE+aaUUgnM0xZ qYJVMNPpWxPG9lI6HWD3yUBNyHLTy+fZR9QeCYUxXupY/afJJGqxCyWsP4xV459w6w/r h2DA== 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=opi4jg9wopSCIOE0WmJ89Db4QMlVzKKOSLs/MtxEPsVq7ipNorNuEynlUFRAIxmZ65 FeHZEFmt6PzYPqTAA6X8NXypDQbeqhPcLa8BOs1DVicUVteFMkjp37913jfgO+mIH/Bp 8JK+Nh8T0NVP/9SdS8R0bZ8fivXVxUTAy+k1CLwQATLkLtT3+12eoq8DnM+i1y00woAy MQ5KHe1qUqESaIWxnEzm1hk8lGAs80i8o6KKl2I7HrBhdUk9FU1+nMLKCl8NWI3XG/AZ LasE1fXz4D3TdkT6U7WVfcnXTMG/BihF7CmtAH3mtWDCvk+JaGi6R4p1a4WacJcuq32j puLA== X-Gm-Message-State: AKGB3mKqojHFowWFa+eemJ2DJ5JSlLlCOVQ1MPUnBl1hFIpeFq2HaIwk qyXQJ+Ugp6TGK/mHh0cjtgKQRA== X-Google-Smtp-Source: ACJfBouuAR7qf76PshZJM9QndXSDLwrm8qb+d5hqxHu6xDJPq7PmBC8EHXZzzR4DLl9TnSjKSTQ/Xg== X-Received: by 10.80.149.210 with SMTP id x18mr56769424eda.4.1514835310496; Mon, 01 Jan 2018 11:35:10 -0800 (PST) Received: from localhost.localdomain (D4CCACC7.cm-2.dynamic.ziggo.nl. [212.204.172.199]) by smtp.gmail.com with ESMTPSA id r8sm29086992edm.22.2018.01.01.11.35.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 Jan 2018 11:35:09 -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 v2 23/34] clk: sirf: remove unnecessary long cast on return Date: Mon, 1 Jan 2018 19:34:49 +0000 Message-Id: <1514835300-381-9-git-send-email-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514835300-381-1-git-send-email-pure.logic@nexus-software.ie> References: <1514835300-381-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-20180101_113522_563534_D0DB3F29 X-CRM114-Status: GOOD ( 10.55 ) 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: Bryan O'Donoghue , 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,