Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754114AbeAATqz (ORCPT + 1 other); Mon, 1 Jan 2018 14:46:55 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:45457 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932156AbeAATnk (ORCPT ); Mon, 1 Jan 2018 14:43:40 -0500 X-Google-Smtp-Source: ACJfBotBJDyS+XX5QXMyTIeol57ttNmxH9636H3OUHm+SFAagbxA7zW5DHqCdrj/UGVtwKDaSmePzg== 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: 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, -- 2.7.4