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: 116977 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp6036680qgn; Tue, 24 Oct 2017 10:08:29 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RYH735OI5PjrtJ2m6NH1EwIV4BhuHXPtizCKoXvdHT6FyEgSWU9OYoPkdja1ngo5f7Nlgt X-Received: by 10.99.114.92 with SMTP id c28mr15439425pgn.342.1508864909063; Tue, 24 Oct 2017 10:08:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508864909; cv=none; d=google.com; s=arc-20160816; b=Q6SDa54gCN319IMDChRhDWcktmKBA+rfsMGPcCk7C+NiLWOJH1201I1MPEo+UNuVJX pKnCq18yF1EqUiREBniAyZG/pe2QUOcmRk6ZcyrO/csbf7tZcgNPQh9AeaHx474WNU/P 1/6jQir5LABFfeNOZOYK9d3EeRAiSWKCSE3m6MS7tLDO9Ua3JzXsZVWrglk/oRqXCqB1 iwsgpicL5HF8RSfRsSw+6Ff2Wz7PhlmRTVW/28iwADKHpWQCALjKhl0QQ61oA2BWGtEa DNaFYPUuHPKqGd9yVWEmQl9KdU8Fd0Iu/K0bBr2+ac9WopYVK5y30bQlhNn2FvahTKql nstw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=VPSp6vogq1hgKyMIJd25Ui6BP+AMge188U+jxg6pzj4=; b=z6x0av2DIj4D/MUISPoODOXTmavu1CpR64La8WSOri5CXtKtjccdxD3Ri+dWLQoPe0 dvcRHjP+sWVA768iYAfpWFoUV8qCh1n2yWjHbJC4E9+xqIdlSoLlFv4YuvvyHHSt9+p8 u/ilNaGnlJdEvjzFiHWTfbG6yvUV0p+wDOlcK9Phnpgc/p9S4ii2vLUPBNhzukeqtDgm ONLjWIk3dzqinIhHkn6aAWo0DbjJ3ULjzHq2ckGHWJ4WVlKrvbZUc6GXtADbMzwSNzZV Lzxvc0CIZB//y6l+HNbYeB9lJSAyCWdPR+bis7MclNqV5zRUNbkqdTGFqRPkxM7j4UU+ RfoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Mfxyv/k+; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 78si415000pgb.691.2017.10.24.10.08.28; Tue, 24 Oct 2017 10:08:29 -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=@gmail.com header.s=20161025 header.b=Mfxyv/k+; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751702AbdJXRI1 (ORCPT + 27 others); Tue, 24 Oct 2017 13:08:27 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:55871 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751446AbdJXRIX (ORCPT ); Tue, 24 Oct 2017 13:08:23 -0400 Received: by mail-wr0-f196.google.com with SMTP id l8so8536325wre.12; Tue, 24 Oct 2017 10:08:22 -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=DzaMHuOaSkj1AoMOqW7OaWTugpsYqU0jPl84/CPqe+I9ReIAF4Kih8q1bM/pjKGL8p y8CFuXjaKHzmNzybeevwtEp+KPjdHYgWE4EWFpxmfO92mvWSzrHvIaRqfhGl+X4lrD5a dhsRv6UobVVuoINreiXw4Ltl76s0FI4tYRVpgiiU1s0eZjNWwE/Q48fcPAe9BGis1/BA UeiuzE6i1wNNH8Ku++DHjWK2+imJxJHgRtL9oCkVQ2K+NGoNNijL0zTL9TgK4Mco5Asc nMWcRNCpLwnCAFPD+ZtBfdycG6Tff8717VoMCOYH4WWKdco70Y8L+Vmz4YmvuY0qcSJz ZAXw== X-Gm-Message-State: AMCzsaX4LQl1xEQ7pvz31+TkyF4w/c88wNvvKMBeBBU/SAzay62iF9o1 11aEefHzPsX50ufmIMPi179a5SL+ 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 Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Corentin Labbe 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.13.6 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. */