From patchwork Mon Jan 1 19:43:02 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: 10139475 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 931B560362 for ; Mon, 1 Jan 2018 19:47:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84DA3286FB for ; Mon, 1 Jan 2018 19:47:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 79B91286FE; Mon, 1 Jan 2018 19:47:35 +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 F058F286FB for ; Mon, 1 Jan 2018 19:47:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754026AbeAATqy (ORCPT ); Mon, 1 Jan 2018 14:46:54 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:43981 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932155AbeAATnk (ORCPT ); Mon, 1 Jan 2018 14:43:40 -0500 Received: by mail-wm0-f65.google.com with SMTP id n138so58262119wmg.2 for ; Mon, 01 Jan 2018 11:43:39 -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=VImJ3Zosg5wCrRnhoWwRvA3JaO5PpRJs+ab8rLYJhvKjfOAqxshIHO0kizOGpmeoWF TtcDzozwYNvKz3Qx6ZN43mYzZphvSCuQ/1i8h5gKXK2nM9ekRe5+kdpFEvysy0h2Bn5/ tRaZiPQS5O/fqGgwva/HsWhaaGe3ZHnAAz/yZVmYlwKzx5EjJcHIFlps3G9E5lF4Rl8R RZCBXcDYcORoId9qR5Lpiez50bgHtbRB9YNAhqdGaudKnWVS1WIAfb7ktzNC0bbx+A8g LYsgkdCq7tYjRZqwLdGTUKPmnX00pU+BvrKLhJYNtvrgZ3KMiTt2tET9vLwn1WI42rwR 0QEA== 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=Dp0Sp7najdP5Y9t/tlpcSDwWNLkGwtELsVjmVVV6KRYTgAQNjjikTQQg/kak1nf/GT Z0QWhOCKYjFdF5j4qQVxs2/cnQ7NkcAFqJkBKu9r98J29C4WYp/vwa8INp7zOHvhT+5K Y7jCtNLM8JPR+yMg/DD3m1av9nsBsK+v6yhBcNzCjeIcbf0BET/jGmHQv5sI6JjQ6NW8 ZkzBpMiAkZfe33jm7rL+EoRs9zwh5v+rDlfpxmiEXoEkRH8Rf2awGQtY+xLjhR75ouiB gwmBtaj+WfpYnylWhJ12B7WxmEAIF2zE5TaBr+b4sEtC9TsgiU4AfaR/Ub2pn/Grbm7z yFjw== X-Gm-Message-State: AKGB3mKCawBF/plgTxWLjJrUvRUkjL2OvJ+n7ViVxM7lwDA9/yfss/x+ k5Qp45GdRIpfPxfpTYATeOpQWw== X-Google-Smtp-Source: ACJfBotBJDyS+XX5QXMyTIeol57ttNmxH9636H3OUHm+SFAagbxA7zW5DHqCdrj/UGVtwKDaSmePzg== X-Received: by 10.80.240.17 with SMTP id r17mr57676806edl.57.1514835819071; Mon, 01 Jan 2018 11:43:39 -0800 (PST) Received: from localhost.localdomain (D4CCACC7.cm-2.dynamic.ziggo.nl. [212.204.172.199]) by smtp.gmail.com with ESMTPSA id w2sm39361075edb.4.2018.01.01.11.43.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 Jan 2018 11:43:38 -0800 (PST) From: Bryan O'Donoghue To: mturquette@baylibre.com, sboyd@codeaurora.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Cc: Bryan O'Donoghue , Barry Song , linux-arm-kernel@lists.infradead.org, Barry Song Subject: [PATCH v3 23/34] clk: sirf: remove unnecessary long cast on return Date: Mon, 1 Jan 2018 19:43:02 +0000 Message-Id: <1514835793-1104-24-git-send-email-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514835793-1104-1-git-send-email-pure.logic@nexus-software.ie> References: <1514835793-1104-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,