Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752915AbdDCMSQ (ORCPT ); Mon, 3 Apr 2017 08:18:16 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:33348 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752114AbdDCMSO (ORCPT ); Mon, 3 Apr 2017 08:18:14 -0400 From: Corentin Labbe To: clemens@ladisch.de, arnd@arndb.de, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH v2 5/6] hpet: removing unused variable m in hpet_interrupt Date: Mon, 3 Apr 2017 14:15:58 +0200 Message-Id: <20170403121559.1397-6-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170403121559.1397-1-clabbe.montjoie@gmail.com> References: <20170403121559.1397-1-clabbe.montjoie@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1099 Lines: 29 This patch fix the following warning: drivers/char/hpet.c:146:17: attention : variable ‘m’ set but not used [-Wunused-but-set-variable] by removing the unused variable m in hpet_interrupt Signed-off-by: Corentin Labbe --- drivers/char/hpet.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c index 59e89e5..f6096e1 100644 --- a/drivers/char/hpet.c +++ b/drivers/char/hpet.c @@ -144,12 +144,11 @@ static irqreturn_t hpet_interrupt(int irq, void *data) * This has the effect of treating non-periodic like periodic. */ if ((devp->hd_flags & (HPET_IE | HPET_PERIODIC)) == HPET_IE) { - unsigned long m, t, mc, base, k; + unsigned long t, mc, base, k; struct hpet __iomem *hpet = devp->hd_hpet; struct hpets *hpetp = devp->hd_hpets; t = devp->hd_ireqfreq; - m = read_counter(&devp->hd_timer->hpet_compare); mc = read_counter(&hpet->hpet_mc); /* The time for the next interrupt would logically be t + m, * however, if we are very unlucky and the interrupt is delayed -- 2.10.2