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: 10139347 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 0B68160362 for ; Mon, 1 Jan 2018 19:38:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F17CC285C9 for ; Mon, 1 Jan 2018 19:38:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E6577285EF; Mon, 1 Jan 2018 19:38:19 +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 5E204285C9 for ; Mon, 1 Jan 2018 19:38:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753496AbeAATiG (ORCPT ); Mon, 1 Jan 2018 14:38:06 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:37531 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753102AbeAATfL (ORCPT ); Mon, 1 Jan 2018 14:35:11 -0500 Received: by mail-wm0-f65.google.com with SMTP id f140so57899700wmd.2 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=fIDtxUVXu+d+hno0iqSgANUSaZ3Ge7LcbYnLOAev4DZ89cs9IbspR1+ARWd3Y9mWFl hsq9LSxMduD7Io6f5/YGOWKVJm4bHPrCm15NGZZgoC0sKs5TyEqgNoYCjz7y07Fzd+dj gdNtrGcT3xnnFzs5LYIQyE4lG0NGiNAVviMO3yf7zm/YnGDqg1i6N0kwck9d7EBV9Wke U2f/uhEV31FCYhGoHK1/ZOG0kpofP5DjXGZUsVCRCci77YSeSz8EGZAivp9+mMAMyaCf OtR8QXS+WyaVTbEaQGFb53Azwx0RzGPEUh+HKoV0yKX7xTGYITaSrEF6UqN6aNFrPAEs xm+w== X-Gm-Message-State: AKGB3mJezXOvXtSDST3YEbHMv2rEXwfhGpxISUkffQQCDokIBT96gCJq SfAPr+7hOKhEJdh5h7xalz3fZA== 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 Cc: Bryan O'Donoghue , Barry Song , linux-arm-kernel@lists.infradead.org, Barry Song 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> 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,