Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp701437yba; Fri, 3 May 2019 09:05:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqyi+KpgYqpuPELTNptq5RlctnvlISjrdYu4Z3MO7AZ6bG0HR4nuFqqrvTpPggIgmyuEozRG X-Received: by 2002:a17:902:e285:: with SMTP id cf5mr11390436plb.77.1556899559769; Fri, 03 May 2019 09:05:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556899559; cv=none; d=google.com; s=arc-20160816; b=iMPxPGsOYWjgmsdlidChhkwNlCs47yWt9DxLTFdrz4zGvrIyFROyCLsgy1oQx/TEHh gmvRug8EySAxg/4OswljnNL3R/orgd5ub9kX3ad7Dud251buL85TAZ46167+g+gPhjvu L2PnO/c7SzlCKm4O31gkGmBArAjWFr/2bLSye6EkX6z1neSLDH28eUiYvlBzP59zuWVD csE6XbNS9cfcYN+yRaZY9bag2AT++ubuG9/TKGuCWjjA4ozzQ3vULfVNL8AH/hKNUkb0 6v0XuCd4xgFLdBs1sRjv1Uyp1jZ08xYKILqbzRmTFf+XlKu4ww1dN9P9SuYVtl5Vpzs8 K/SQ== 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:dkim-signature; bh=hxoy1ZV5sToffY4PE/tTqurkXva76ASJNTG/Gm0iUtc=; b=xun2D4t0w7R6wafJr6skYQmTCUElyBSk15CcFYQN/SxEFJM0RUGDoe+xZ3xxDdEd6e kke4VisKeBTcj7j14aQ/cRoQIh2lyctNwhLtncF7WChAaY76SD2Q0ak3EsfTZYXnZfzD trzJrnXGRoEcYQx4qEcI8MtAzZiwWlXqShRGKvljyR23PssZ5kyrHV27SpASnxLSgVBd oancebOm3Oah6u3K/6El+qPi24+b84klOe2NLMsACDOBwhmxQ4HdAgvz9RlUNC4JDXWh Q2fMp/cTecSY5CLeFeViI5VX/gvlPm5ZRwDpwlYXQPIBce9n84PY/4QEp5gMW6++8K0G CvXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="uZfp/N3A"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n5si2916999plk.196.2019.05.03.09.05.44; Fri, 03 May 2019 09:05:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="uZfp/N3A"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727987AbfECPme (ORCPT + 99 others); Fri, 3 May 2019 11:42:34 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:41383 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727460AbfECPme (ORCPT ); Fri, 3 May 2019 11:42:34 -0400 Received: by mail-lf1-f67.google.com with SMTP id d8so4714612lfb.8 for ; Fri, 03 May 2019 08:42:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hxoy1ZV5sToffY4PE/tTqurkXva76ASJNTG/Gm0iUtc=; b=uZfp/N3AZYMWXt5Qex8B7lqHo+QCVU0lHkKBJ7/OsujvSrSe/6pCz3Tx/Fi9EzN5MH 4jcT8gkcTgrPnCoo0P9vfF+6iCLssr6QFtKBslx199cYK4OJTJbpS+BzwLFO3fNnGR9b VV2/ovqWA8W5ztSfjC8UYtL1loIfqqFXPq5PVQxDXjllaDkSGlGoRpcF2xCH40qpsyiy 96McdV4eFzJOBsohHc8zfmOaseibnvi5v5D/B6K48C9GCV0/jkvl2LfwuhXtVXBBpdpe mKLwvvII1dMDaDBYVc/tupFgRk7th1DURgzTvLxVX4NxKO9XBDRzZt6m+n8HojOyywtw VHXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hxoy1ZV5sToffY4PE/tTqurkXva76ASJNTG/Gm0iUtc=; b=CZOjgnIyDIohAxT/vGDtBCvcqe2epsP8Nf7exCZHCZjvDTbyu0yCcUi4dvXslMZwp6 znjY+k3aNKQ0F9uMbTivd4Ba8GNWnsljmFtZpZ+T1z6iT08ZxChSVZhmAxQPqo9QkOjA ZCk/qRkEUGp+UiMH3u4hZ1Opj3+jLB+0FOsvYG5zhl8wngSFlTDHRHUzLnoWD04kEe23 ZHHNKmB9bAxG0gLw4pV6MVMmwKREOo+Loq3Dd8shXni2AYnjB/hqNgRAK6KYtAFFZB69 5rVpvEJ0NVOZOVcmaZkJ2olGuPURt+eogr0niNQpPdhv5SIbfb+4jjtBdvgTdLofmKzZ GMmQ== X-Gm-Message-State: APjAAAWZ5HG3++ppa/9CjnEERcPgVyRYzZHTTcvQuEy1wf9znnSEcLkZ j3ygpFXlbwFptKMqED6m1KPtOg== X-Received: by 2002:a19:f60f:: with SMTP id x15mr5444261lfe.95.1556898152317; Fri, 03 May 2019 08:42:32 -0700 (PDT) Received: from localhost (c-573670d5.07-21-73746f28.bbcust.telenor.se. [213.112.54.87]) by smtp.gmail.com with ESMTPSA id 63sm486077lfz.2.2019.05.03.08.42.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 May 2019 08:42:31 -0700 (PDT) From: Anders Roxell To: a.zummo@towertech.it, alexandre.belloni@bootlin.com, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: linux-rtc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] rtc: imxdi: remove unused variable Date: Fri, 3 May 2019 17:42:17 +0200 Message-Id: <20190503154217.13205-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This variable is no longer used and the compiler rightly complains that it should be removed. ../drivers/rtc/rtc-imxdi.c: In function ‘dryice_rtc_set_alarm’: ../drivers/rtc/rtc-imxdi.c:633:16: warning: unused variable ‘now’ [-Wunused-variable] unsigned long now; ^~~ Rework to remove the unused variable. Fixes: 629d488a3eb6 ("rtc: imxdi: remove unnecessary check") Signed-off-by: Anders Roxell --- drivers/rtc/rtc-imxdi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/rtc/rtc-imxdi.c b/drivers/rtc/rtc-imxdi.c index 6342bc403645..3f3d652a0b0f 100644 --- a/drivers/rtc/rtc-imxdi.c +++ b/drivers/rtc/rtc-imxdi.c @@ -630,7 +630,6 @@ static int dryice_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) static int dryice_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) { struct imxdi_dev *imxdi = dev_get_drvdata(dev); - unsigned long now; int rc; /* write the new alarm time */ -- 2.20.1