Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp133712imm; Thu, 26 Jul 2018 15:28:33 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf92nhKkku+fR930yrYAOiK5IRQUhc1GoUU5aCxVGEU/P1lsQjGzPRLNGT7OwscWv7Nx3wH X-Received: by 2002:a17:902:b189:: with SMTP id s9-v6mr3525240plr.188.1532644113148; Thu, 26 Jul 2018 15:28:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532644113; cv=none; d=google.com; s=arc-20160816; b=DaJ0yzqkrax4uWFznu4vJQp/lYb4HLE9JX3J+SCEY7+jUVYK+vH96kVeoEJZorJ9fs 2jX4hB58e9jToZg4xQq1nSVRGHVWTTK+zxzjcL8cj8cqHp+FFdF6ZRt0K316c7axpSmu 8/V0AKVmqk7ECe03voCBLLyztPCwzuv1mHuuT5N1WES9rTY95Qv4kAZS3L4F+rf+wnXO w6bvalE3/EZGTh8canjoxofirUh1ZzpYV+hm4aiwlx9cWWkPm5NYNWo820vXNpI1eey1 2Bz0bejA4HtYwGBCKaedYE09K0lULDV7+iKaOn/+DvNXlE39ZMpQJ54i1PX0BstILWNC vZ3g== 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 :arc-authentication-results; bh=QfSMIH9qvOZIUIIIM+Fz4GDtMrQxsyQ5z5I74zumA7k=; b=i88VPyqxirnDxOIMowsNzOgVnm2djI5bZ9oLRUQSQrF/90pA5JLnq4F4nqnJZK7QW6 9oLWFjq/AjqJZiZFkDXCQfg/1TGe0DT0ffXGtlcO7vcnm7vvSVY2ikoqpnJb987TeKe9 Pa4Pw++l1+KlnmhzsLVC3dWmIg05pxIS8ZxZabOUsqW0KUbi0uOuMq6B61BxNHTSOjBk eo32z2eLCzRYg7Nr9jx6RD4L4v/M8uYSCrISi6vIqrIIJRW6tiGgzuHAajPu2Vs5rIXG O5OKF+fYLWbd00eCStO2qZHaJQ+pqWO02e4USaHHQ0mPuSgjWz4u829sEh1sNk+oIlQL 9KNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fQpurh9F; 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 i15-v6si2451168pfk.146.2018.07.26.15.28.17; Thu, 26 Jul 2018 15:28:33 -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=fQpurh9F; 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 S1731782AbeGZXqU (ORCPT + 99 others); Thu, 26 Jul 2018 19:46:20 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:38424 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731521AbeGZXqU (ORCPT ); Thu, 26 Jul 2018 19:46:20 -0400 Received: by mail-lf1-f67.google.com with SMTP id a4-v6so2256728lff.5 for ; Thu, 26 Jul 2018 15:27:28 -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=QfSMIH9qvOZIUIIIM+Fz4GDtMrQxsyQ5z5I74zumA7k=; b=fQpurh9FLoh8n3Y83/hZBzi6fQUlQ7w2l9v1uIFfRfoMfb0Q/8R3/3rwtsxJusjSkk ccbYRrfWEgtxq+VYPFSi3Mg1UHdAJW7Pv11G70Trumm/DeGOPkob7csFHPYMtbq53Wem z4M2fCnqEnwIPTLTtiw5FuWwrJ0MAS5BH27AM= 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=QfSMIH9qvOZIUIIIM+Fz4GDtMrQxsyQ5z5I74zumA7k=; b=LjPYBh/FZq8KwoFQtn6irgzHh6eCHteqjiaRK3YhWU1o8Qy3Kmhh5COi09gIekMBez efZE4JDNHvjKq5PZMntOXgO0GJDceSd04a4RUxnjaVMWut9G5L4tdq6Mx3eENozwhaxW tm0/tZtb+Ogrp9e9JhsuC9DH3Ku5KovhrNCHLK6M9yj3Ntn+aNJUs8M5ReKhZQbDtaOU gZVnqzMsgN9AgYd/Dz9fhny20szRVfeCIWQ3DG053uE+DfOw5edzagWCaBFDntEui3We 1boDhjC8ELiXXR24PPFghzh7zPkGVnjFymjuxheHCfLHnNdfbtjBzbA1tvSGyW6l5ScD EVKw== X-Gm-Message-State: AOUpUlE8HwhOst/ViQIaOBReES5UYbUV8jTVhxBUPLzl8wimiIDocBiw qWcWz0eHYgHpvxBgyoDBL9Am1A== X-Received: by 2002:a19:988f:: with SMTP id a137-v6mr2592798lfe.128.1532644047364; Thu, 26 Jul 2018 15:27:27 -0700 (PDT) Received: from localhost (c-2c3d70d5.07-21-73746f28.bbcust.telenor.se. [213.112.61.44]) by smtp.gmail.com with ESMTPSA id h9-v6sm330480lfc.47.2018.07.26.15.27.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Jul 2018 15:27:26 -0700 (PDT) From: Anders Roxell To: gregory.clement@bootlin.com, sboyd@kernel.org, mturquette@baylibre.com Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] clk: mvebu: armada-37xx-periph: Remove unused var num_parents Date: Fri, 27 Jul 2018 00:27:21 +0200 Message-Id: <20180726222721.5787-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When building armada-37xx-periph, num_parents isn't used in function clk_pm_cpu_get_parent: drivers/clk/mvebu/armada-37xx-periph.c: In function ‘clk_pm_cpu_get_parent’: drivers/clk/mvebu/armada-37xx-periph.c:419:6: warning: unused variable ‘num_parents’ [-Wunused-variable] int num_parents = clk_hw_get_num_parents(hw); ^~~~~~~~~~~ Remove the declaration of num_parents to dispose the warning. Fixes: 616bf80d381d ("clk: mvebu: armada-37xx-periph: Fix wrong return value in get_parent") Signed-off-by: Anders Roxell --- drivers/clk/mvebu/armada-37xx-periph.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clk/mvebu/armada-37xx-periph.c b/drivers/clk/mvebu/armada-37xx-periph.c index 287e98a7cff4..499f5962c8b0 100644 --- a/drivers/clk/mvebu/armada-37xx-periph.c +++ b/drivers/clk/mvebu/armada-37xx-periph.c @@ -416,7 +416,6 @@ static unsigned int armada_3700_pm_dvfs_get_cpu_parent(struct regmap *base) static u8 clk_pm_cpu_get_parent(struct clk_hw *hw) { struct clk_pm_cpu *pm_cpu = to_clk_pm_cpu(hw); - int num_parents = clk_hw_get_num_parents(hw); u32 val; if (armada_3700_pm_dvfs_is_enabled(pm_cpu->nb_pm_base)) { -- 2.18.0