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: 116433 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp838818qgn; Thu, 19 Oct 2017 12:11:58 -0700 (PDT) X-Received: by 10.99.154.18 with SMTP id o18mr2143692pge.18.1508440318414; Thu, 19 Oct 2017 12:11:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508440318; cv=none; d=google.com; s=arc-20160816; b=cygpLyEZj4M9GdhAPkN7vWZhqrrkQ1CywiPqXEnPEYPDwbpEfxEOSGxl0JP2MME5Gs 5I78k3kUcYjTqQDEGQa7d6+53oaZcReKARZMfXNMsNnP2BOSfqsdfT4CSB57SuQZJJVt EvOjyBHgP9897oXo6XnThxESKkAdbS7VawkTqg+c9h/O6MF/YtXfZQXX+WhUbfZSwWwx C3C3eVZpWpqHQIhc7bpE1iClfXAK37kADbSk3/+kEaBFrHwsYFZ9ckHNSvsRBKvq4+dp jQMbzwi6fcyhuBtaY/4WqNOy2/asFUK2Ze3ZcIN+czUE9XkbbFqcfNj7cZl2h1AvMiig +2DQ== 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=KruBdmZtoHYKqMdig+3SSbJijkgfbsVdb08Q7q/Yc5M=; b=CTYatA/M+c4oiDM/QIF2Q6ZIILSet90HOTNCkwvGeKim3i4MT27JUePfI4PivlWvKI u7FqT9IxqlbKmJ7Kkq0PT4DYYijUTrdKqDq4HiTN7e5KXJSKBWIZ2XpTGpk0ZRTAE6Bm +XFepie22UxtMEQqPUNU9ECZhZ/y9KRpczNhqFZaW9hJ3JG55CTXEdYnidP9giZcSdRj fEMx9Ai0BPQO0WXYqtnSxGVApdbDbriw5u/JigfqKWgANLLladu2CsyO9f+N0qV79zQf HNY09vNyzyb3Wzsst0vRJSV1QY7GdYUgqNg2/5+MwXSUobytSdBa74xriNU2FVskOYX5 hFNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LggYmCAq; 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 r10si9717334pfd.323.2017.10.19.12.11.58; Thu, 19 Oct 2017 12:11:58 -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=LggYmCAq; 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 S1753508AbdJSTL4 (ORCPT + 27 others); Thu, 19 Oct 2017 15:11:56 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:44729 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753239AbdJSTLy (ORCPT ); Thu, 19 Oct 2017 15:11:54 -0400 Received: by mail-wr0-f193.google.com with SMTP id z55so3297485wrz.1; Thu, 19 Oct 2017 12:11:53 -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=AzlB2eLFQN6Kt4GsRNhPHVX9LwfaMI7fPiAiiIROx9lH5anqCWS/uOTLYPEu2sDnRq dSM7mQNr2djlOX9oYnV7Uc/iJFw/IDxrRh//24S6YtzWYDDZ19pE6yJUsODFVwQbF37X QX5Ja3Qexv7tcau6hNEEwwuoFofXTdhpMCvp4C5QYZb/7eNUriR2bHfWI9/oA8G9xKih yRjOZsk8ztE8oDT07uRtT5doNtPy+59CLP0LEiowuPjI0/W7gBBOY0ACMSvNAfd3RR+i OFLgzrjZcXSkIOXQeg5Hbu2vYrdEcjF1rxcq06nXMQEQAzQ1esB2tsRSl0bS1GbcacWr VjNQ== X-Gm-Message-State: AMCzsaV2e0LMJp5GqCQETPMIpsN6DEAlqEV889Rw3/QLftpKVrkiBxy8 0BlXj75HsHCNqKRPKWFEQGg= 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 Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Corentin Labbe 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 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] Signed-off-by: Corentin Labbe --- drivers/clk/sunxi/clk-factors.c | 2 -- 1 file changed, 2 deletions(-) -- 2.13.6 Acked-by: Maxime Ripard 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. */