From patchwork Tue Oct 24 17:06:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 10025113 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 2D45560245 for ; Tue, 24 Oct 2017 17:08:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1100628A4C for ; Tue, 24 Oct 2017 17:08:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 04CC428A7D; Tue, 24 Oct 2017 17:08:49 +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 5E6C128A4E for ; Tue, 24 Oct 2017 17:08:48 +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=XgGbdsUcd75ELS40qrx7qo7gsoG5yKm4yiiaMoJEEdk=; b=GZ2 PGaPzOPD6PsUdKPPdqxbgOiUWf6mW1BrPjCbbGsyBf/iPOTuErLRhwvTUdEaRD3gKnsjA9fjnRtUi q8Pq34lXQpD5ioXmhfsyi10lQYbMYhNqHYZCl1NBqqowFTmQZULZkPgk4PD25psQddAdSY3DVQCm+ 9+E1+6mJxQkQDTVZPCxOhHwES3S86gVyN18UzFMBPRxUd/8O8jSODHGMgnxs96o/cBzQOYUtdv5QF 6/PTiebgiwvyzRN/skSd4J3+unuD/zeshbb8hL2CjEZqTaaYygz9KjLo2sfe/GxmAKGHyYKoi4HwF aIJON010/oIPJyAiQ/CQNivrDpPlQKQ==; 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 1e72h5-0004IB-T8; Tue, 24 Oct 2017 17:08:47 +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 1e72h2-0004DX-7M for linux-arm-kernel@lists.infradead.org; Tue, 24 Oct 2017 17:08:46 +0000 Received: by mail-wr0-x242.google.com with SMTP id y39so21428208wrd.4 for ; Tue, 24 Oct 2017 10:08:23 -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=VPSp6vogq1hgKyMIJd25Ui6BP+AMge188U+jxg6pzj4=; b=Mfxyv/k+e/lcgxKYu7KRXzFUYeLiJi/cp7weIe44tO8h2Qig1DNU+ptXddYI1Da2WK k9JXs3H8HERFZ5lQLvMY3oXZESSu4N9whrgsDwO+A5En7Hf5FU+7HO7sM7MlFwwisXUb qu0mP/gr9CJ9ps9bxhmcCNWu4anGjwiZhjEXk6V1N9N0eYiMBatO66HBR+5BLLmNfxsO FmoDuLb7YtgbqEVMZ3G0Pq8seJKTxrWg8Wmp9to0tLIuA7vcveQABMQ+noeiCv5zRx96 IGKVkdhzPdhpKnFyBs1lg0iRgzNx/RtTEjmWAW+yDElPLUi2bVq/Eu/DY5n3PCxzQ2Jw 4rnA== 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=VPSp6vogq1hgKyMIJd25Ui6BP+AMge188U+jxg6pzj4=; b=mBoTx+EplBVTINRSrYs5wdrRgMFeqXdcTcbQwehjMHh6qnGx25R2z3ppnyrapr6rZU c5QvrthFxjOjVSOfxsxLq8vY5n0ASJBS3zffUHHxwGb6BC2MidwSU5dXoD/1koMaLU57 VyAapAMpV/+0Y+JFjxhWJM8PPCkt8KJpos3204gnNJXVQCYIQGCLqx23+ZgrYzm+k57d D1aG0FtkYUICPmUiEP+f0f+GWiBm0SZloL2xFb7sidWlpuGqqRZ+f6DyjhGbPh01w+6H ptoMwNJHWtzmDUiHHvi4TN4eC//rGFyIclpCrjhhWTFYUMxY+RZRgbA0E26NBVYAw4lY BIHQ== X-Gm-Message-State: AMCzsaU9XWOxdmRLgV18f0Xndc+RW25eLa7+SK5ff9Ja8TXSFmhLVyL2 7SVoan4krFM51UWw3/Wn5IU= X-Google-Smtp-Source: ABhQp+Rrik3iaDNkJzR7vUYKrHckzlq33JgSMp39/co3AZd9GYpbB/FgA3GsiyEpVIRhvzKrYsFNSg== X-Received: by 10.223.150.116 with SMTP id c49mr14087318wra.246.1508864902160; Tue, 24 Oct 2017 10:08:22 -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 g75sm788453wme.23.2017.10.24.10.08.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Oct 2017 10:08:21 -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 v2] clk: sunxi: fix build warning Date: Tue, 24 Oct 2017 19:06:16 +0200 Message-Id: <20171024170616.24889-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-20171024_100844_444239_C384F2D6 X-CRM114-Status: GOOD ( 10.73 ) 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] Fixes: 4cbeaebb8af1 ("clk: sunxi: factors: Add unregister function") Acked-by: Maxime Ripard Signed-off-by: Corentin Labbe --- Changes since v1: - added Ack and fixes tags 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. */