Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp89459ybz; Wed, 15 Apr 2020 05:07:55 -0700 (PDT) X-Google-Smtp-Source: APiQypLRwgOIWTUYWqTwMUgFmepdhfO+CDkxAOX1A+W1u1QYPdAxHvBDDafVCOBySQeh51kSexGE X-Received: by 2002:a50:b263:: with SMTP id o90mr23451842edd.326.1586952472130; Wed, 15 Apr 2020 05:07:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586952471; cv=none; d=google.com; s=arc-20160816; b=HxbN7c4vTyeGahxpZjWMg6cymTLNYJJE/v+KZwDVQ3vYJfvWbp7Q7B7f4ZLqH+Fs/H R4NRNwyz2zI0q/SJRa7L8AHdHQ1p6xk83uwObUBfz5A/evorPz2z9e+rlNUNvEVWgFIC gLo2LQhSpbl3fjuVTWvNraibd3KMWfjqqD0Sb6fnCg3xxWGBEXcd1iBgFNgiUIpILlaE xeKtrK37Q1uwzLKiKKJL3bY0FQcT2pDH25QsNZM7Szb72ugI2UaMQUhyEPZuGPTwy04U aU40S0530Sz515KXaYG4mpVIF6E13JpfxtA4XVjV01c3RkDoeUq4uXOybe3uj9fey828 /2ng== 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:mime-version :message-id:date:subject:cc:to:from; bh=VmIfajISbO4bG0s6yIq3LwzE1Dh91f+cUyFPocO7HOg=; b=j/4+Aaxqgz2ZcHCW5Inj5dvSC2jkCCohJE2dsZ66V56YWgbdfMS9ydB2l+5ENvAKxD 8Zc7QIZNdcenHeXYSrSMJpIysxYuCz9n+gfZblN+lqyFNEEHy1sNClMHNYmUbvqQqrZB 5mLDNJz5h6hr9R9z9DdY8VnBVYmY0qi6/+FzELYTYijlbmas1y/8i+QzmdwHelIY2iC3 OdjRNyoysZOv1R3Y1udeYjyUBdo956tBk9UCBzOI8eFQ5h/bAuHm1VVbDi46WULn6EgA 1xhSwWh95EYrYZ/dH+JAop0+A1h9YQLN2tkFcVa9IziDyPT0Q2+6i3DhL6vGFFlXtbP0 NhCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for 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 d10si3445042edy.293.2020.04.15.05.07.20; Wed, 15 Apr 2020 05:07:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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: best guess record for 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 S2439420AbgDNLi0 (ORCPT + 99 others); Tue, 14 Apr 2020 07:38:26 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:2319 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2439405AbgDNLiS (ORCPT ); Tue, 14 Apr 2020 07:38:18 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 72E5C9490E1CDCE6EB0C; Tue, 14 Apr 2020 19:36:21 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Tue, 14 Apr 2020 19:36:11 +0800 From: Jason Yan To: , , , , , , CC: Jason Yan Subject: [PATCH] clocksource: atmel-st: remove useless 'status' Date: Tue, 14 Apr 2020 20:02:38 +0800 Message-ID: <20200414120238.35704-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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