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: 10928939 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9692314B6 for ; Fri, 3 May 2019 15:42:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 82E9528592 for ; Fri, 3 May 2019 15:42:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7452B28657; Fri, 3 May 2019 15:42:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0678328592 for ; Fri, 3 May 2019 15:42:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=dt9Y8QThhNTLyT6e1mnV2P5OEw3IwD1cJzI9ggvojeI=; b=JqeGI4VojBPOU+ diKhMijMKSepqtDXiZ7c4Vp3NXnc9vN/J+StIOjwlTlnn8RxAriOWPHdcz9I6bOGEzNaWsfzmORew AsyEQwPHpli9K+od9cxYJ7wvYF7jcXXSY1Z5y9uWSHXm7WwT8tYcr+VJBLYJFYJ/NMCgODoIxvzMu bWlh9fpw0ZJ11SmntA4Baq9oUikoLHyBMNjsG1z3MSdZaJrYLkrFw7vxlFglsHteT9Jw3JeSfPpbh go0g2WtJlu2pI3YB1rrtE6y0ISzf6Pmldsq16Ap68Gy1y0ODR1FJ8/uoEthTcynOs4Dl6lvmH68EQ BjTdt6ZCCInB6Wm/0sjA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hMaKc-0007Pg-Fg; Fri, 03 May 2019 15:42:38 +0000 Received: from mail-lf1-x144.google.com ([2a00:1450:4864:20::144]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hMaKZ-0007PE-K0 for linux-arm-kernel@lists.infradead.org; Fri, 03 May 2019 15:42:36 +0000 Received: by mail-lf1-x144.google.com with SMTP id k18so4707025lfj.13 for ; Fri, 03 May 2019 08:42:34 -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=MaM7n6c0Xip7klADSYxa/LHqZQoaoEY9Zu1tKIgISkE2HK4YdgmkRtOi2osU9u1lGx ACdnCgDQlRBeHuWZYu42pQgEdzgx0X00CRTMRRy0Lz6gybheQmq4xyVQKvh4iPJg6thO aJ7rswn83A0l9wqHJwT/BnhCry2jnUtJBvRfSZ8c0WlKV8N3hMomsvGfiQOPP5iIyBZP KeQZsZmvvC5vhr8MTRC/u/tGt+rciiuHx45LX1AAyAafDR4hEuIW91PGTMY9AJIwhA8T WlPc1I4p2mB76hKPqbcCaXmIUo9ObT/RQ3AhsWMBTHeRga78cav2dtnsxbDEWQAnJNup 7VIQ== X-Gm-Message-State: APjAAAUGPe3hIBt1lo3bIs+5LfD7fVidENoyxw9sXCZxYWBTQE6dxd50 +ydY/5kfjuyjR+VhNEN+IVNg6w== X-Google-Smtp-Source: APXvYqyU4uQeJLG/OtvlrhNPGDGwC02F9Y9cEMoD1VswE6z2M+2QplpwXLVYjy+XAotMFpGdXNqlcw== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190503_084235_659966_8CAD6F41 X-CRM114-Status: GOOD ( 10.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rtc@vger.kernel.org, Anders Roxell , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 */