From patchwork Thu Apr 30 04:42:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 6299731 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4EE0E9F326 for ; Thu, 30 Apr 2015 04:43:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8E5312018E for ; Thu, 30 Apr 2015 04:43:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1681F201BB for ; Thu, 30 Apr 2015 04:43:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751036AbbD3EnH (ORCPT ); Thu, 30 Apr 2015 00:43:07 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:52141 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750868AbbD3EnG (ORCPT ); Thu, 30 Apr 2015 00:43:06 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NNL0009QRRRXI30@mailout1.w1.samsung.com>; Thu, 30 Apr 2015 05:43:03 +0100 (BST) X-AuditID: cbfec7f4-f79c56d0000012ee-5b-5541b2db59c9 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 4E.30.04846.BD2B1455; Thu, 30 Apr 2015 05:43:07 +0100 (BST) Received: from localhost.localdomain ([10.252.80.64]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NNL004IMRRKH210@eusync4.samsung.com>; Thu, 30 Apr 2015 05:43:03 +0100 (BST) 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: Chanwoo Choi , Inki Dae , Krzysztof Kozlowski Subject: [PATCH 1/3] clocksource: exynos_mct: Change exynos4_mct_tick_clear return type to void Date: Thu, 30 Apr 2015 13:42:51 +0900 Message-id: <1430368973-23786-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpnluLIzCtJLcpLzFFi42I5/e/4Nd3bmxxDDR7v47W4/uU5q8W8z7IW k+5PYLF4/cLQov/xa2aLTY+vsVpc3jWHzWLG+X1MFps3TWV24PTYtKqTzePOtT1sHu/OnWP3 2Lyk3qNvyypGj8+b5ALYorhsUlJzMstSi/TtErgyDq+Zzl7QzlXxreEeUwPjPo4uRk4OCQET ifnrupkgbDGJC/fWs3UxcnEICSxllPi//BsrhPOfUeJ9/zw2kCo2AWOJzcuXgFWJCDxglOh4 tAIswSxQJTHv7Q6gDg4OYYFEievTI0DCLAKqEp1dX5lBwrwC7hI/ZvBALJOTOHlsMusERu4F jAyrGEVTS5MLipPScw31ihNzi0vz0vWS83M3MUKC58sOxsXHrA4xCnAwKvHwMkxzDBViTSwr rsw9xCjBwawkwiuxHijEm5JYWZValB9fVJqTWnyIUZqDRUmcd+6u9yFCAumJJanZqakFqUUw WSYOTqkGxqI/IVtsX736w/+odVXxzoRZqrE+P17+M1rBI801ZV1iojXLPPlZfx86tM5ljt9p +t582pGXF8PE80zncr1YJfqRcY3SU4Vn6o/UI83i39Z1B+1tdL7vrJql1VmfeMjfgrEvt8Hh 2JPiF9WTrnOxnAx+Iv6moWHy9V/y6lXcE/0FZlRejbnsq8RSnJFoqMVcVJwIAIEyi5EaAgAA 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=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 83564c9cfdbe..87c2e558c465 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -413,7 +413,7 @@ 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) { struct clock_event_device *evt = &mevt->evt; @@ -426,12 +426,8 @@ static int exynos4_mct_tick_clear(struct mct_clock_event_device *mevt) exynos4_mct_tick_stop(mevt); /* Clear the MCT tick interrupt */ - if (readl_relaxed(reg_base + mevt->base + MCT_L_INT_CSTAT_OFFSET) & 1) { + if (readl_relaxed(reg_base + mevt->base + MCT_L_INT_CSTAT_OFFSET) & 1) exynos4_mct_write(0x1, mevt->base + MCT_L_INT_CSTAT_OFFSET); - return 1; - } else { - return 0; - } } static irqreturn_t exynos4_mct_tick_isr(int irq, void *dev_id)