From patchwork Tue Jun 2 12:31:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 49363 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 84A3320BD1 for ; Tue, 2 Jun 2015 12:33:02 +0000 (UTC) Received: by wgme6 with SMTP id e6sf40169158wgm.3 for ; Tue, 02 Jun 2015 05:33:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=/hfasJrmkFf1XbF531s1Kv/n5+v1PciUgwJffV0XN/Y=; b=QbllSok+KN6ZEaBGEZrudGo7NbSNw3j841vFH2j1Olb+7qY6INTTl5K67X3pZhd6Sh u+c3Cq0RQBSDuDsN5CphqB3z4fINNtQDRWTJqYIKjA12NCqLjZPAJBhoqw75WXWv4La2 eFBJnNagrPHU1ao77Kz5mCWuNMSJOuAowj3q2ertC0Ea8x2TY5zQZ51BYBRQgGLLEEoZ p38QbY2zSKcmZq3QmA5CDYxyHEIjS63rdxur6LpshAkCotCmNYqlX7RAKtnySpTq0Hl/ zqCwbqGfE9CqAtJr9QCbz/rP99Ji2HdehtBbkz07vuBekbe2SSpB55xO7UUPuV8LaQ3l hMJQ== X-Gm-Message-State: ALoCoQkDlX26ZJMrVQj/j1INVIldZNIhKMuXgGUlRlErOuqfjhvYoieAfq8X6Uf0Bl5r063721XO X-Received: by 10.194.236.230 with SMTP id ux6mr25558662wjc.5.1433248381854; Tue, 02 Jun 2015 05:33:01 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.81 with SMTP id v17ls847259laz.2.gmail; Tue, 02 Jun 2015 05:33:01 -0700 (PDT) X-Received: by 10.152.205.102 with SMTP id lf6mr5158798lac.1.1433248381680; Tue, 02 Jun 2015 05:33:01 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id wx3si14946751lbb.142.2015.06.02.05.33.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jun 2015 05:33:01 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by laew7 with SMTP id w7so32068980lae.1 for ; Tue, 02 Jun 2015 05:33:01 -0700 (PDT) X-Received: by 10.112.199.133 with SMTP id jk5mr26526101lbc.32.1433248381593; Tue, 02 Jun 2015 05:33:01 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp3030986lbb; Tue, 2 Jun 2015 05:33:00 -0700 (PDT) X-Received: by 10.68.252.38 with SMTP id zp6mr12251969pbc.159.1433248377267; Tue, 02 Jun 2015 05:32:57 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hq3si7315425pac.164.2015.06.02.05.32.56; Tue, 02 Jun 2015 05:32:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758848AbbFBMcs (ORCPT + 4 others); Tue, 2 Jun 2015 08:32:48 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:35439 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755639AbbFBMcf (ORCPT ); Tue, 2 Jun 2015 08:32:35 -0400 Received: by wgme6 with SMTP id e6so138640297wgm.2 for ; Tue, 02 Jun 2015 05:32:34 -0700 (PDT) X-Received: by 10.194.100.42 with SMTP id ev10mr48500082wjb.50.1433248354458; Tue, 02 Jun 2015 05:32:34 -0700 (PDT) Received: from localhost.localdomain (sju31-1-78-210-255-2.fbx.proxad.net. [78.210.255.2]) by mx.google.com with ESMTPSA id tl3sm26620396wjc.20.2015.06.02.05.32.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 Jun 2015 05:32:33 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de, mingo@kernel.org Cc: Krzysztof Kozlowski , Kukjin Kim , linux-kernel@vger.kernel.org (open list:CLOCKSOURCE, CLOC...), linux-arm-kernel@lists.infradead.org (moderated list:ARM/SAMSUNG EXYNO...), linux-samsung-soc@vger.kernel.org (moderated list:ARM/SAMSUNG EXYNO...) Subject: [PATCH 02/11] clocksource/drivers/exynos_mct: Change exynos4_mct_tick_clear return type to void Date: Tue, 2 Jun 2015 14:31:47 +0200 Message-Id: <1433248316-26320-2-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433248316-26320-1-git-send-email-daniel.lezcano@linaro.org> References: <556DA1E5.1030601@linaro.org> <1433248316-26320-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Krzysztof Kozlowski Return value of exynos4_mct_tick_clear() was never checked so it can be safely changed to void. Signed-off-by: Krzysztof Kozlowski Signed-off-by: Daniel Lezcano --- 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 83564c9..87c2e55 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)