Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3080774img; Mon, 25 Mar 2019 03:26:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqx50CZu+46JOVCqMPQCi4LEwzWIi0DgnWxkKgoJvRHKw5Ic/VEY88rpJ6fssbSk5nueLbZm X-Received: by 2002:a17:902:9a83:: with SMTP id w3mr24377576plp.137.1553509559535; Mon, 25 Mar 2019 03:25:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553509559; cv=none; d=google.com; s=arc-20160816; b=HHc/kzz5Q3BUh6bjz7MtIWX2y6FB1GV0MxvwxlzbqFNiu2AlVnAv2BdiroNMhX2T9s yZ5rtQhnUzWFXSe+rv0Asodr3SNi+p93Mb5gHji2dmXJWxQlFzTmNXXHECTz+1Mt4Ta8 mBO7cz03qFWesdKsCmhK8GHcBW/L9rVFBJx6JcruG/ws7pUYD3IogkROi4X6bjNIa08V ZIeAQpPdWsisiVyttjAC9qNX66bX4uE7lMhACsP2bOLj9vxZUSGoV1E23993x0CKikY5 m7wdE1qgw2Csp+5uo9hsTusmnOvLCcQ6LM/JyJL+o+eUB6v6++0hicrwQcQzQr/peMbX b8nA== 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=hcOI01Wr/+3DxH7WXfJEA8V1OyEeebKPMWO9OvVYzmQ=; b=d+/GgFXghBwlrRa/OsJPZS9oHRwf+WZ43yDEBAjT5novq7WqlyKTfW4uaT72ny0kOH n/grU/pNJ/BYN8724gHgsM+RcygG/3hNX9Kvr9aG8X+MNdQuz/SihulzY+0jGpOSjlww pp5NIqHDwHYNjhaox0q/9Yjbd8CyK3Z+NGDxWdigHdxHso/HHR/NfCiTOFv/FIDYOMJJ 5fQ0Pez7NlBie1I7o5B8zlyBW56V4kYuwi0o0xzK7wx/GUQ6t4BM5/e0EqK9mwsH2vJc 7kSoLUZ3a962HbKBLRUQ/9PoMXEFmQl7UuuX1+WhqjsS2cBB6dW1+y1fTI5oC1rQBCNj aU9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zV2sfJ5O; 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 z5si12837969pgb.415.2019.03.25.03.25.44; Mon, 25 Mar 2019 03:25: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=zV2sfJ5O; 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 S1730584AbfCYKZB (ORCPT + 99 others); Mon, 25 Mar 2019 06:25:01 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:43249 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730484AbfCYKZA (ORCPT ); Mon, 25 Mar 2019 06:25:00 -0400 Received: by mail-lj1-f196.google.com with SMTP id f18so7270889lja.10 for ; Mon, 25 Mar 2019 03:24:59 -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=hcOI01Wr/+3DxH7WXfJEA8V1OyEeebKPMWO9OvVYzmQ=; b=zV2sfJ5OSOoelT6/jHfOWvo0LwWj7t+4JCuKx2tLrHjftzv/5+RIAXBhO4PfDZxV2J zIlBuQRsgMPCsGhf4aIJCmTRy9jRMQV/iS/A+G2PRERgw4LnHeQYzovXhV9vq/L1qw1o OCIEnK5YuxIXcWabWZ10aBozMoIlttSVf35rryYv3++dajdG4w3Ea675W3CCcl33hffT UYWbSBcbR5qHYiZ+82pSL5KkXKMpVU2cxLbgZIGf+9Em4AMGXyFt1U7p+/jgEnQJzRRm 2SA+HA2yRvVze5SYagvkSlPXSbk7sVaB0CqWK4iPtP4wwjmU3gcyYhoCI3LNUnHLcbZd 8Wrg== 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=hcOI01Wr/+3DxH7WXfJEA8V1OyEeebKPMWO9OvVYzmQ=; b=U2yZzVcupcmDeYmEqXN8E+7ZZcnoOlnK6C8/05V4SAuatkKe5kt7gi/G7ctBpTJkJB mZ4Lc3WgwaHkOOayhV+muaMUN0hqcMWQn5Q2h/IWi8xSBDWsPk8vw3ra3bRv0sb9o7KY bVHLBQ/jGPmlryFZ7C+/x2K3UBBQLYKhd2GZECfRWHuUsd07LsJe8iUDpr47tdyNJjV8 dGHlCRyMKUkcbuPCU0L4Ze5RyG+NZoPU3n18Sw4qR+4Fl+gfkoLd2Mm0EoRT9BTJR18J /fyDbcB+HKAvEVjhQGJSsSIkEi/HfEyjI17H7FuATeB1l6a+6s913cdUpYCBA+I8X175 zR1g== X-Gm-Message-State: APjAAAUNDJtTPsFzNN/CtRHlACHc2cd6OmpZLWGUKrhMC9HXyKwWAGDf N22tOBnv73EBXGC4K+FirnNsSw== X-Received: by 2002:a2e:6e14:: with SMTP id j20mr2129423ljc.172.1553509498786; Mon, 25 Mar 2019 03:24:58 -0700 (PDT) Received: from localhost (c-573670d5.07-21-73746f28.bbcust.telenor.se. [213.112.54.87]) by smtp.gmail.com with ESMTPSA id r77sm2256964ljb.29.2019.03.25.03.24.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 Mar 2019 03:24:58 -0700 (PDT) From: Anders Roxell To: a.zummo@towertech.it, alexandre.belloni@bootlin.com Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] rtc: sh: fix unused variable warning Date: Mon, 25 Mar 2019 11:24:53 +0100 Message-Id: <20190325102453.8349-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 When building the driver rtc/rtc-sh a warning about unused variable shows up: ../drivers/rtc/rtc-sh.c: In function ‘sh_rtc_probe’: ../drivers/rtc/rtc-sh.c:472:18: warning: unused variable ‘r’ [-Wunused-variable] struct rtc_time r; ^ Remove the declaration of the unused varable 'r'. Fixes: 373f7f4bf4a5 ("rtc: sh: stop resetting time to epoch") Signed-off-by: Anders Roxell --- drivers/rtc/rtc-sh.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/rtc/rtc-sh.c b/drivers/rtc/rtc-sh.c index d72ee3a841ea..579b3ff5c644 100644 --- a/drivers/rtc/rtc-sh.c +++ b/drivers/rtc/rtc-sh.c @@ -469,7 +469,6 @@ static int __init sh_rtc_probe(struct platform_device *pdev) { struct sh_rtc *rtc; struct resource *res; - struct rtc_time r; char clk_name[6]; int clk_id, ret; -- 2.20.1