From patchwork Mon Mar 25 10:24:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 161081 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp3787436jan; Mon, 25 Mar 2019 03:25:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwEylGmBd5yq3KjIkkVHZcZBCnXmvwjT59mikq8oCGVZe9pavNb2reuzO1LwOX7Kle+yCT8 X-Received: by 2002:a63:84c7:: with SMTP id k190mr22545138pgd.255.1553509503442; Mon, 25 Mar 2019 03:25:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553509503; cv=none; d=google.com; s=arc-20160816; b=ezdSEIp2rxFmY/ZC5fD0Z+FfJBFCStbh7MIeCFlZ3Iu1a3QPsIwHkHReFSvlxuEgYe Jqs+AOxSYayt6rTuRs8Cslw4J9OyOuiaKvByZ30pKKTem2zAR11AjOW9jqcNE5QeQ2sS diXmj+q20/MQtVF9l9pev4N4h+6dat8uqK4IwUfnmepDmSb9eCWpvs6fkjOc3lruSz7R c/O0tOuNO3LEp5xV4lzXZ/GZ+i2apansYd6BowoGdL0sNVo36kEMlvtq4aR5xXRmI8Cu sF+f+AmIr6j08QrNB6x9uaidSX/yEDy+qCQN/7FlXACGBwhGZvLj6Adf1X3CWRW+fxo5 KoQw== 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 q2si13549744pgc.507.2019.03.25.03.25.02; Mon, 25 Mar 2019 03:25:03 -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 S1730650AbfCYKZB (ORCPT + 31 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 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(-) -- 2.20.1 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;