From patchwork Thu Oct 19 19:09:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 10018201 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 66D1C600CC for ; Thu, 19 Oct 2017 19:12:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56AC928E37 for ; Thu, 19 Oct 2017 19:12:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4B5B028E39; Thu, 19 Oct 2017 19:12:26 +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=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 E63AF28E37 for ; Thu, 19 Oct 2017 19:12:24 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=xESXUmTkbB9ZG+q3uqfmWvT9+98fxhVhzrmakM/PvTc=; b=GUc K7AS2J3ODQuveJhvDB44brR/k0Vpra+VWmsDs0IwihockxGhQUcPuIow483cpCW7v/+KLkC+wGlUf GG+9nef3R/HDjp5Y8Txkv7WLXmYwt2En/+DoroXfWMyxWv3yGkAtl0qDn+ROUkfjEYCsX/qVK6itm 8U7L5t8+3VzOdskT4b6GeAhaeuK88kOEb37TlIjR/0ab0dR4kWbQvx/GPp+qgtYfbT9wOmtBB7kLo px8NtO2tXyfMv2jnFEebyYOtRLw/HKd9Gdb5J4gY0bIg4wIXpVoUnyjodvj4N6+lD13yxQ8E+aZBx Q1SBI7QHJ8NISJRFJt7YpO5xopAsyrQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e5GEs-0005Dz-Qx; Thu, 19 Oct 2017 19:12:18 +0000 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e5GEo-00057F-Tq for linux-arm-kernel@lists.infradead.org; Thu, 19 Oct 2017 19:12:16 +0000 Received: by mail-wr0-x242.google.com with SMTP id g90so9351613wrd.6 for ; Thu, 19 Oct 2017 12:11:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=KruBdmZtoHYKqMdig+3SSbJijkgfbsVdb08Q7q/Yc5M=; b=LggYmCAqny4sHEE1wwSg+XcNU1rB6mRvePrDUdxjTFy5/+6cAza7zh20KqYkQRENOR cuPAyhjexWli04IrDb17GKppYqxJsmxsQoVTL1+qbhvwsK3rwLMc7BqIWskZwTAqpJeE tJHg+j6v4HiBXyAGunOSO4H8IKYIzE4QN9b5mCg1eWOVwkPsCQhmw3vEyvYVmpsFSpq+ WmQjAVGimNm8JFOCSdfOFqLD5ZKDnuAJ+WuuEJnYdP/cKzlZ/6/X847aREVIm/YBALd+ as7Y9Z46SWq6TND9BeEmG3USX8WxK/3yeafEgu7TjrFiqI9WRYPFX/qDrOvc6gG23dI4 QLig== 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; bh=KruBdmZtoHYKqMdig+3SSbJijkgfbsVdb08Q7q/Yc5M=; b=HvyXn1Dtkp7jKJr3FkZUkqtBcAC+a+yzhhOireicFsd2R9aCtAvnkuDceUznxLqbFW PJJxvK8R6FTo8Mwept6tdMxduYNDmevZn25LpJ2d4o9fNIU+I8kF8wh1zi7I0vA4bgZK WfJVmpo1xd+FqD8PM10sFs9fULKka2pJd1iupeNgnFqdkQM8uL2CvXDyljYFwGYdezuf bKhQlAdPuFvJr5mPRwOUUtO1o5ZmxwAVI/1IjepYumVUjrZfr0755yD1FA0azn0Jn247 G9Q6ooMJg50EarP2veyD4+6Zb/G1/qUi2oIrUDN2pKvJkiY7rM0GE73kppH3+xTpNsr4 5hxg== X-Gm-Message-State: AMCzsaUB3xwfQyMQ5/+pqcAjFokeVnkRYVFjXuwAxMR3KnoqhoGQ5dtJ UthblbJTTRHM0hGR/B2dtux3F1tt X-Google-Smtp-Source: ABhQp+QLGtX5mRZP2IBNI0YdN7vM/b9AiMOdbNLQu1meDHcAUCu8bk2N0xRhMNL9pDs2Inwics0viA== X-Received: by 10.223.157.136 with SMTP id p8mr2632056wre.28.1508440312803; Thu, 19 Oct 2017 12:11:52 -0700 (PDT) Received: from Red.local (LFbn-MAR-1-580-96.w90-118.abo.wanadoo.fr. [90.118.159.96]) by smtp.googlemail.com with ESMTPSA id m8sm11699691wrg.55.2017.10.19.12.11.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Oct 2017 12:11:52 -0700 (PDT) From: Corentin Labbe To: emilio@elopez.com.ar, mturquette@baylibre.com, sboyd@codeaurora.org, maxime.ripard@free-electrons.com, wens@csie.org Subject: [PATCH] clk: sunxi: fix build warning Date: Thu, 19 Oct 2017 21:09:48 +0200 Message-Id: <20171019190948.5754-1-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.6 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171019_121215_127490_18293B0F X-CRM114-Status: GOOD ( 10.30 ) 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: Corentin Labbe , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 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 patch fix the following build warning: drivers/clk/sunxi/clk-factors.c:279:14: warning: variable 'name' set but not used [-Wunused-but-set-variable] Signed-off-by: Corentin Labbe Acked-by: Maxime Ripard --- drivers/clk/sunxi/clk-factors.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/sunxi/clk-factors.c b/drivers/clk/sunxi/clk-factors.c index dfe5e3e32d28..856fef65433b 100644 --- a/drivers/clk/sunxi/clk-factors.c +++ b/drivers/clk/sunxi/clk-factors.c @@ -276,13 +276,11 @@ void sunxi_factors_unregister(struct device_node *node, struct clk *clk) { struct clk_hw *hw = __clk_get_hw(clk); struct clk_factors *factors; - const char *name; if (!hw) return; factors = to_clk_factors(hw); - name = clk_hw_get_name(hw); of_clk_del_provider(node); /* TODO: The composite clock stuff will leak a bit here. */