Message ID | 1514835793-1104-24-git-send-email-pure.logic@nexus-software.ie (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 BBF3560362 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 1 Jan 2018 19:46:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD307286FB for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 1 Jan 2018 19:46:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A0EE7286FF; Mon, 1 Jan 2018 19:46:31 +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 E56D9286FE for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 1 Jan 2018 19:46:30 +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=WKPSgEZrb+YGgoPJiQJEhDBIWd slt6nhYYxu2ltV7qP0ikAxmlRY3dG+QP4dOWZn/kd4M5EG5rXr9V+U6Bb8Nm0psJaSTHCI4CXjIMy uqs7Bn6surw842B/lIAfgIyuoO2B3co4cBbiCnOcoKSe/u6K8UcRHRW59Y8jYUaaAIbmHdYdC84gx Wm5yUJyClhUc5Je4WxdZiMSJYLPi6+1HRDRQSldK+jxyzGXV+FWOHHlC+rHXpPki5yuGrQ9lpa1NU t35pxF6basv2mfDGSGA3e16mNXMexK6FTU4UX1zOfPxxg7iQlah8iQsiqtKiyXOeB+m3TS4DUZ4G6 Zo7vwOKg==; 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 1eW62R-0005I5-LH; Mon, 01 Jan 2018 19:46:23 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eW5zy-0003DB-D8 for linux-arm-kernel@lists.infradead.org; Mon, 01 Jan 2018 19:44:54 +0000 Received: by mail-wm0-x243.google.com with SMTP id r78so58606316wme.5 for <linux-arm-kernel@lists.infradead.org>; Mon, 01 Jan 2018 11:43:40 -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=SD3reoXrJ4MNpYg+Zyz1jM26aXqWduhB9dvNtKfq0gS2+m8Glb4GAF+vMp7WcLGoWr HqeDLTlGgUFLk5A1s6l0DhHxpXSXaYvclANaxjadvD2RCI5HUK1qkPL6Mr5vm3WyoGgV cjxBBqJ8xt0kjgo0svyEL4BZXUDQJMFky8Z6TG6yuVAj4GfzmvMeaDXsXolgYuwtg2M2 cWtSWBJcuIhBj9HcwGVCKgrQ0dYQ6rcZjC7RC3v/R+i/Ghrf6+Lbv1WkcOwl0iR2RYq8 5UXtqZCcF3f9ZO6GJ795cP5PuDNfFRoTGWjQ1apfQeFC1Bpq8Rnr94MuYIKIMHt/md4G rndA== X-Gm-Message-State: AKGB3mKgnHdEx3PNMh5ZASZCsn7cx1H7auF6lk5akNL9/T/5l8jeqzGM rKcsJw+ugck2t/1OS+mVv21sxw== 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 <pure.logic@nexus-software.ie> To: mturquette@baylibre.com, sboyd@codeaurora.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180101_114351_576006_B7970CC0 X-CRM114-Status: GOOD ( 10.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Bryan O'Donoghue <pure.logic@nexus-software.ie>, Barry Song <baohua@kernel.org>, linux-arm-kernel@lists.infradead.org, Barry Song <Baohua.Song@csr.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
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,
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 <pure.logic@nexus-software.ie> Cc: Michael Turquette <mturquette@baylibre.com> Cc: Stephen Boyd <sboyd@codeaurora.org> Cc: Barry Song <baohua@kernel.org> Cc: linux-clk@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: Barry Song <Baohua.Song@csr.com> --- drivers/clk/sirf/clk-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)