From patchwork Fri May 3 15:42:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 163326 Delivered-To: patch@linaro.org Received: by 2002:a92:7e86:0:0:0:0:0 with SMTP id q6csp757961ill; Fri, 3 May 2019 08:42:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8xA83BY6mPYfosbPh/X/dy+OvRY4oO3vlj/a9MNa0MVcW61XGQvn0W3bkQlMhh+miFGEe X-Received: by 2002:a63:ed10:: with SMTP id d16mr10933022pgi.75.1556898156214; Fri, 03 May 2019 08:42:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556898156; cv=none; d=google.com; s=arc-20160816; b=ewOJidrMbKl4YJfTdc271Q+b1G6zFDfgDT/EgUmEmRN/L6b2t6J307yuRvtTNZcz8/ 3ogxzcp61qrcw4PjShrxlB7fVkJOUS9xY3GmbWqGg+GefVBM/sNQvxLZ7Ibix2Wiq7R/ l4unkwidxACaEz3rCG0hI5GwKar5CID7YIc0da+WGpHKMHJ/tXU2QOBFqlgu3ZXCmPXI OFKHsN2hS5BJYjHItlXqp5KJ0K4VOO4cXXtEKjfrKlarV68to1N+fAvV/VeTR9zJCman sjxyf1gSa01qotfDl7xFr9iF3g7GbpSdQyK8qDhuzbjIdA1NnEYi+1zTIde/u3M7W5XF em+w== 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 n5si2702973pgj.365.2019.05.03.08.42.35; Fri, 03 May 2019 08:42:36 -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 S1728016AbfECPme (ORCPT + 30 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 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(-) -- 2.20.1 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 */