Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp622268ybz; Wed, 15 Apr 2020 15:19:32 -0700 (PDT) X-Google-Smtp-Source: APiQypIMAfnzy6LZSXDQAkWT5kbdHD18bQ1YrydyMfSTMVoJ6DqSp39qWblaGUxVtWbldulJ4spE X-Received: by 2002:a17:906:9450:: with SMTP id z16mr6877097ejx.166.1586989171962; Wed, 15 Apr 2020 15:19:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586989171; cv=none; d=google.com; s=arc-20160816; b=nfTOA0tH4HDgx/J07Z97SU6UYcZI1VdDqvsHeMJJXHzgCZrGkfiQwNFn4CJKimz5Bm dZyKu6ePdliT99Je9ZK8JVwXCG+wVYUakGrqJvOkdWRJAg0l8XW3OzhSlP+7t7hIUn2P 2vyMBjUk3GWuTxzNEm4kPgaWj3i651EG2UH23i7PkOM0F8EOo2mckNEzpUsRzdKKtSTR dqaynGhYsaAfvC2ee1v++0CiHRVT28/z7TK/zhX21Gowk+iFQbzRufWUshF/A8E20o6h /wMlDAqyz5Cgr+NOSXf44kN3Ev1j1vlUbH4gCtP8Xf61H7XdWpnBT1sMML0GicBNM/Kc fQ7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ABSuMjhF9HYEZWyaS6lV72/CYNyvloaClt7DccJZbxA=; b=yzTJKiW7MAZaSqp/HuDsQDS0U3N1L2mhTFH0wlscwyDwwREzaQNfy/OIosYK7BBvOf W0mT+7quAaO+gTBwJdeCHD+qML1l6Ar7BBpASBuu9mc6+Sku9FxXJJFlO9ZIRxCQToZj Ol06dcHim0k9rOSo1NXkzVCD2PDTt2sJ8MEttF9apKiAjmDnc4JRD4GOdqU1a26ve30h 3hsfyLRKSX3/fz0hJ/wyh5N5GxgEDH71qHrmsdbJAYGoKaZ2eWKZLhs6BrsX1p2qkies OerB7n2OODq3+A14uoB24c+nDC7KbYqHtAb0+xL46UbHO34bQm2as/pflRBo4yjjOlXB 1RHg== 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 r8si10748607edi.324.2020.04.15.15.19.09; Wed, 15 Apr 2020 15:19:31 -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 S2635183AbgDOHhZ (ORCPT + 99 others); Wed, 15 Apr 2020 03:37:25 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:54295 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2505530AbgDOHhS (ORCPT ); Wed, 15 Apr 2020 03:37:18 -0400 Received: from localhost (lfbn-lyo-1-9-35.w86-202.abo.wanadoo.fr [86.202.105.35]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 7923E20000C; Wed, 15 Apr 2020 07:37:12 +0000 (UTC) Date: Wed, 15 Apr 2020 09:37:11 +0200 From: Alexandre Belloni To: Jason Yan Cc: daniel.lezcano@linaro.org, tglx@linutronix.de, nicolas.ferre@microchip.com, ludovic.desroches@microchip.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] clocksource: atmel-st: remove useless 'status' Message-ID: <20200415073711.GM34509@piout.net> References: <20200414120238.35704-1-yanaijie@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200414120238.35704-1-yanaijie@huawei.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/04/2020 20:02:38+0800, Jason Yan wrote: > 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 > --- > 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 ab0aabfae5f0..73e8aee445da 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 = { > -- > 2.21.1 > -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com