Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp467137ybg; Mon, 1 Jun 2020 06:15:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJ3Nl2GKKeURFJZW1/BwUKGeL3zktAq2UTGHmeMUZ/HG1v9Ti0yXPQpvoPAKeazwc6W/FA X-Received: by 2002:a17:906:3ed5:: with SMTP id d21mr20423597ejj.283.1591017308341; Mon, 01 Jun 2020 06:15:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591017308; cv=none; d=google.com; s=arc-20160816; b=E1u0zD3RdTcjXASQETFzZSYHmQ5vdhm1NH2llqO8WgNrq915+wewXBM1O9atWbTzVY VaUCs9/FEmLFyBinOyp1pSP7+Ck/XK39DmyNx83i/IDqYJ2XQYnqxq892Dc3pxFvBo7e CFZvAD6Dw+8PxQCl/xtj+gfvd0+7yOLqKnLn8tRSER559b0uFjZHKYSZM+buqMc/idMI J56zLTcBPLLv9P8/sq3vGMOl39iycT9unsSNWhTHmmv7LrL5T3wzmOHNan/BQ17pOHP5 W1SkW7WVlmbhiZNXG+OYp4QO9Su8be/F9JClpcSM4VDv4TOf9PnZDe/4nLrjsdGUkQa5 OFag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=mRUZ2QZIzbhsNaxtOxhH0hRWU36Rm/wRmOCrOlTPdr4=; b=wQZsW9PLLQoAS51+fZLUsMWUw97o5L10uARi+vcbLHUjl+nyHQ1Q+R9wKFlmzbRiNH Rtk3gCKDDejSTtYexk3prE9kCXTDTJnMsVa81Ey5rLmxV8saEbnQYDnro6UKP5p7FyLC 4uIP1h1wUp5t51o6tTzD3tosjk9jOzD+ppO1I1MTfnDzesjmmcB5HWr6yyOcK1ZY1LPj 2kR49iQGrv0VBxXdn5szDHHtO4N6mzJ8oNcfR/k/HAYHkXbVMH43AgVDwpbY2t6q7kxb WrdipJ4R4MNpyrE829mokEIr2yz2NTtjGtnU1kZsx/EWoWaNK/BBjY5hlwEc9uvjBgMY L9zg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l19si1823253edq.428.2020.06.01.06.14.45; Mon, 01 Jun 2020 06:15:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728209AbgFANMe (ORCPT + 99 others); Mon, 1 Jun 2020 09:12:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727945AbgFANL4 (ORCPT ); Mon, 1 Jun 2020 09:11:56 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE86BC08C5C9; Mon, 1 Jun 2020 06:11:55 -0700 (PDT) Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jfkEI-0007A6-Um; Mon, 01 Jun 2020 15:11:51 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 35E7F1C04CE; Mon, 1 Jun 2020 15:11:49 +0200 (CEST) Date: Mon, 01 Jun 2020 13:11:49 -0000 From: "tip-bot2 for Jason Yan" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] clocksource/drivers/atmel-st: Remove useless 'status' Cc: Jason Yan , Alexandre Belloni , Daniel Lezcano , x86 , LKML In-Reply-To: <20200414120238.35704-1-yanaijie@huawei.com> References: <20200414120238.35704-1-yanaijie@huawei.com> MIME-Version: 1.0 Message-ID: <159101710905.17951.9379021995908434238.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the timers/core branch of tip: Commit-ID: 8c42c0f72d7c4f295646d3eba73f62e5579b1732 Gitweb: https://git.kernel.org/tip/8c42c0f72d7c4f295646d3eba73f62e5579b1732 Author: Jason Yan AuthorDate: Tue, 14 Apr 2020 20:02:38 +08:00 Committer: Daniel Lezcano CommitterDate: Wed, 15 Apr 2020 10:57:15 +02:00 clocksource/drivers/atmel-st: Remove useless 'status' Fix the following coccicheck warning: drivers/clocksource/timer-atmel-st.c:142:6-12: Unneeded variable: "status". Return "0" on line 166 Signed-off-by: Jason Yan Acked-by: Alexandre Belloni Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20200414120238.35704-1-yanaijie@huawei.com --- drivers/clocksource/timer-atmel-st.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/clocksource/timer-atmel-st.c b/drivers/clocksource/timer-atmel-st.c index ab0aabf..73e8aee 100644 --- a/drivers/clocksource/timer-atmel-st.c +++ b/drivers/clocksource/timer-atmel-st.c @@ -139,7 +139,6 @@ static int clkevt32k_next_event(unsigned long delta, struct clock_event_device *dev) { u32 alm; - int status = 0; unsigned int val; BUG_ON(delta < 2); @@ -163,7 +162,7 @@ clkevt32k_next_event(unsigned long delta, struct clock_event_device *dev) alm += delta; regmap_write(regmap_st, AT91_ST_RTAR, alm); - return status; + return 0; } static struct clock_event_device clkevt = {