From patchwork Fri Mar 28 13:06:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 3903191 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B7D7DBF540 for ; Fri, 28 Mar 2014 13:06:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E68B220295 for ; Fri, 28 Mar 2014 13:06:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0429320253 for ; Fri, 28 Mar 2014 13:06:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751227AbaC1NGP (ORCPT ); Fri, 28 Mar 2014 09:06:15 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:17811 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751404AbaC1NGM (ORCPT ); Fri, 28 Mar 2014 09:06:12 -0400 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N3500F5BDQ8AW10@mailout1.w1.samsung.com>; Fri, 28 Mar 2014 13:06:08 +0000 (GMT) X-AuditID: cbfec7f5-b7fc96d000004885-30-533573c01242 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 65.33.18565.0C375335; Fri, 28 Mar 2014 13:06:08 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0N3500170DQ44S40@eusync2.samsung.com>; Fri, 28 Mar 2014 13:06:08 +0000 (GMT) From: Krzysztof Kozlowski To: Daniel Lezcano , Thomas Gleixner , Kukjin Kim , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: Kyungmin Park , Marek Szyprowski , Bartlomiej Zolnierkiewicz , Tomasz Figa , Krzysztof Kozlowski Subject: [PATCH 2/3] clocksource: exynos_mct: Change exynos4_mct_tick_clear return type to void Date: Fri, 28 Mar 2014 14:06:01 +0100 Message-id: <1396011962-4467-2-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1396011962-4467-1-git-send-email-k.kozlowski@samsung.com> References: <1396011962-4467-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpjluLIzCtJLcpLzFFi42I5/e/4Fd0DxabBBh1ftSw2zljPajHvs6zF 6xeGFr0LrrJZnG16w26x6fE1VovLu+awWcw4v4/JYu2Ru+wW62e8ZrHYvGkqswO3x51re9g8 3p07x+6xeUm9R9+WVYwenzfJBbBGcdmkpOZklqUW6dslcGUcm/mQseAMR8X8nVvYGhgXsncx cnJICJhIdE/fxgphi0lcuLeerYuRi0NIYCmjxKT23cwQTh+TxJELBxhBqtgEjCU2L18CViUi 8JRR4nfDI7AEs8BzRomn38NBbGGBRIk735YwgdgsAqoSf3f+B1rHwcEr4CbR2ykGYkoIKEjM mWQDUsEp4C5xYu5zsIOEgCq2XfvJNoGRdwEjwypG0dTS5ILipPRcI73ixNzi0rx0veT83E2M kLD7uoNx6TGrQ4wCHIxKPLwzrEyChVgTy4orcw8xSnAwK4nwLrE1DRbiTUmsrEotyo8vKs1J LT7EyMTBKdXAeHXdrNSpSsG2h5c3LD1w5sQRma4H5asvuKf+n3SxkceL/dkO/fdp3AI66Xdf O7/df/FZlky7TtPs/PPL7xw7lVNzfpLH6XLbQ5flVj7KO95c71qvfHvP9cV9uw9plZa7f4lu eb+aedeMC1Vdt71z+5Kv1orOVLmx/O6cBlmr376uFiKLThlr5SmxFGckGmoxFxUnAgCANNy0 GQIAAA== Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Return value of exynos4_mct_tick_clear() was never checked so it can be safely changed to void. Signed-off-by: Krzysztof Kozlowski --- drivers/clocksource/exynos_mct.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index 0b49b09dd1a9..2ac7d228743a 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -376,15 +376,11 @@ static inline void exynos4_tick_set_mode(enum clock_event_mode mode, } } -static int exynos4_mct_tick_clear(struct mct_clock_event_device *mevt) +static void exynos4_mct_tick_clear(struct mct_clock_event_device *mevt) { /* Clear the MCT tick interrupt */ - if (__raw_readl(reg_base + mevt->base + MCT_L_INT_CSTAT_OFFSET) & 1) { + if (__raw_readl(reg_base + mevt->base + MCT_L_INT_CSTAT_OFFSET) & 1) exynos4_mct_write(0x1, mevt->base + MCT_L_INT_CSTAT_OFFSET); - return 1; - } - - return 0; } static irqreturn_t exynos4_mct_tick_isr(int irq, void *dev_id)