From patchwork Fri Jul 27 15:10:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 143066 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp934781ljj; Fri, 27 Jul 2018 08:10:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf6dLkdWeYDZ63NFcBT8vCnyyZ76p+FXHaQhmp0YSBFd1aB7wZPFXBEVpfRXmMAG17ij7aR X-Received: by 2002:a63:ab4c:: with SMTP id k12-v6mr6429780pgp.386.1532704226403; Fri, 27 Jul 2018 08:10:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532704226; cv=none; d=google.com; s=arc-20160816; b=HXiBJk/0X0O26UseXvEeZeyZt66CdtfFtt/XkoltRgihf+9kH5IUrkMpVpejsGWq1/ dooxpdk+0raHXIOimUrQvTUAXlWzSOqrqgbqL7ltrx1dgdy18GxGqVa797v5Gj/dDtW9 woWTH6B3M68zcapQ+1+J/HFOLzl77olkEx6yExTViLyR+MJoEuVGANqFw19UvRhfuRoN Cr9lG9DZBqrdCTWjIo+1R5zvhZcFkfln8uBFXpr6DuRdVsO6tp3EfJsj+n5fiHjNzeen MZHJ6D7/4znr/EGCk0qdkr17LOwzCUsrVpeYu5zO9OdiTjmW5nGhA1xaExNWIWo6CfOk ztTQ== 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 :arc-authentication-results; bh=OxAuQ126foWoK3G5Zo6tw8R8NIWUb0DYcwyySeq2UL4=; b=qrfi15EalhXkWQ1wjHmUulKnM0CXtkFVwLynpb+iiJDdls3iZloyNcbNf+ZwQ4RQgT Y2S6kb1HJaV/5y8VEBwBQhS9qy1vpycpnLnH/b5dla3j8+lHYixfYwVDwUghdvAuBIYR i19nK18VwpkUB0ugCR9d+TYQgud1MdwS9oPOR9WuegTvYWLaAChcg1cVEE9drs28aSR3 7jhLPLaDTwSVzM8TKqt6vpNLOPWHHKDJxQVxZsgVOigwqYKd2aTbi3s6xFKxxUPPo5Wm FHw5TwFZsg42u9sIVVs5jj6vy4w/wgYkt8bMK8lOOcEku2nK+rqGECoJWBZVt7WgVHNp MmCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ae2Gi3rK; 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 194-v6si3487450pgf.651.2018.07.27.08.10.26; Fri, 27 Jul 2018 08:10:26 -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=ae2Gi3rK; 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 S2388602AbeG0Qco (ORCPT + 31 others); Fri, 27 Jul 2018 12:32:44 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:33971 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732097AbeG0Qco (ORCPT ); Fri, 27 Jul 2018 12:32:44 -0400 Received: by mail-lj1-f196.google.com with SMTP id f8-v6so4740143ljk.1 for ; Fri, 27 Jul 2018 08:10:22 -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=OxAuQ126foWoK3G5Zo6tw8R8NIWUb0DYcwyySeq2UL4=; b=ae2Gi3rKMQQOEAi6sLgY68hl1NEPV4OBwZWUFQRJJMZtEc5Z7gB2+U1r9uYOoRmR5+ r2WCTn4DRtiCTsHliQ1KcRMq9ckkvoCB7mdBJ66d6pKInh1ND7Fueg1BxazZXJpxGm5E mVAkSdyz2ojY40TYwGjCxuwSJb4fKS67C3OgY= 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=OxAuQ126foWoK3G5Zo6tw8R8NIWUb0DYcwyySeq2UL4=; b=dSjfB3yypFPuhzKwaFUSIDi6mJX3trm9b4FzU1by7GQ+oHv0rsXG0RZ9k/ybne5bXa HJoYCgh/jcEFQEuvmWqTTR+vU64A5G20FakJlAb4HeA1hIFVKx3LQu2vRg+ivntypQSI CqBBIUIoegg0WJvdghlV7xjfF0WQsTiQ3lsJXm+Ruagx/KEUaa948hFmh3/4A5brVrWY /b+OGYHkogCTAzwfJhrI493W8bv3be3pQdrZI2+g1yG+GxXLTmFlJCYCnlBxiTjFtE7L 2nMYDprRvaurjxda5WWWJN/s/7ixFLKJMOrb2gt/74zEPiR719Z9D2MxGfIi/eBDcsgH XvvA== X-Gm-Message-State: AOUpUlFxIQaNDjZZ2jwVuCEbs1M5dcQGN2eEwbqu8nRjtfidG3KXk32b WsDf4WX38OGY0r02yTXUWDdTJw== X-Received: by 2002:a2e:40c:: with SMTP id 12-v6mr5476272lje.146.1532704222074; Fri, 27 Jul 2018 08:10:22 -0700 (PDT) Received: from localhost (c-2c3d70d5.07-21-73746f28.bbcust.telenor.se. [213.112.61.44]) by smtp.gmail.com with ESMTPSA id q19-v6sm724241lji.14.2018.07.27.08.10.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 Jul 2018 08:10:21 -0700 (PDT) From: Anders Roxell To: alexandre.belloni@bootlin.com, a.zummo@towertech.it Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] rtc: sh: remove unused variable rtc_dev Date: Fri, 27 Jul 2018 17:10:15 +0200 Message-Id: <20180727151015.3930-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When building rtc-sh, rtc_dev isn't used in function __sh_rtc_periodic. drivers/rtc/rtc-sh.c: In function ‘__sh_rtc_periodic’: drivers/rtc/rtc-sh.c:146:21: warning: unused variable ‘rtc_dev’ [-Wunused-variable] struct rtc_device *rtc_dev = rtc->rtc_dev; ^~~~~~~ Remove the declaration of rtc_dev to dispose the warning. Fixes: ec623ff014c4 ("rtc: sh: remove dead code") Signed-off-by: Anders Roxell --- drivers/rtc/rtc-sh.c | 1 - 1 file changed, 1 deletion(-) -- 2.18.0 diff --git a/drivers/rtc/rtc-sh.c b/drivers/rtc/rtc-sh.c index 25ec6a937858..51ba414798a8 100644 --- a/drivers/rtc/rtc-sh.c +++ b/drivers/rtc/rtc-sh.c @@ -143,7 +143,6 @@ static int __sh_rtc_alarm(struct sh_rtc *rtc) static int __sh_rtc_periodic(struct sh_rtc *rtc) { - struct rtc_device *rtc_dev = rtc->rtc_dev; unsigned int tmp, pending; tmp = readb(rtc->regbase + RCR2);