From patchwork Wed Jun 15 15:55:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9178907 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 286D960573 for ; Wed, 15 Jun 2016 15:54:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 187DA27BF7 for ; Wed, 15 Jun 2016 15:54:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0CDA227E5A; Wed, 15 Jun 2016 15:54:44 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 99E4627BF7 for ; Wed, 15 Jun 2016 15:54:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751614AbcFOPyn (ORCPT ); Wed, 15 Jun 2016 11:54:43 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:49554 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751529AbcFOPym (ORCPT ); Wed, 15 Jun 2016 11:54:42 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue001) with ESMTPA (Nemesis) id 0MgkbP-1b1IvH2GLH-00O1ZG; Wed, 15 Jun 2016 17:54:00 +0200 From: Arnd Bergmann To: =?UTF-8?q?Emilio=20L=C3=B3pez?= Cc: Arnd Bergmann , Michael Turquette , Stephen Boyd , Maxime Ripard , Chen-Yu Tsai , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: sunxi: remove unused variable Date: Wed, 15 Jun 2016 17:55:23 +0200 Message-Id: <20160615155537.3342366-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:J7qDE7I8VuS6KvoaH9MIDmC8eKpJmjRkfBkBYikO1FFgr1Q4Wfc GiT5+UFy5YbHvQMN1i/FZBCnmXPQb7UURDKW1bCvAQ71J5TNTWzWGIuuQQbWVSxnzGU1wVb XumDfAVtyaC6uOf+1ZvRUau1y9XHFA0fESnUlyFAaMJSX+ttbZtueC8ZwBuxVFGPa+zUVOV uX32I+v+suPA2THUbXn4Q== X-UI-Out-Filterresults: notjunk:1; V01:K0:J6SNdyLiN/8=:BuVIvUEukMx2DAy++uQvVB Hnl11KpxTFtrl4r3SYc0lnPaiYUBJsCP3uxtIfQXHtAYXojFyB9wQ98qyu+Lz+1iMhVUGG1Ye FjmbWf/YRWlPt9w/oxmH7mMAUWQdyUVngB4n0J/c+2ShIJgdl1sgt4tN2bgCP57aYLWWAB/x+ lBBk7rsvvAWJS6Yoi7n1asfYOWRlaLlCuZkPdjnMBPQuL1Q9uJQsUgq8sfKr38wCxJ1OCVhiE lS2dh+W32evR+xeHvFt2ED/izmoNaL45Zcdl6apCGVfug0hNaWThg8N9yf1w+RDdvRHFQyvT3 XDIi6vKmBPCNR8seQotw4vZQB3xLq7E41//HaJZ6YAqcWyicSYZtOgGFqNJ8v0GabjKl6yGJ0 lpbM1PqgasthcLKBxYM972kvoLcueBQIlmmdkDmYYTXgaWyuan4hV0HDCGRIp+2gGLaNuFIBe 5hCQJ6NWIoW495HC9fLdcaJqKEDNb+g4WHOzslcoafQRgqAy9EcScRd/unM4WOvbGRTMmUQ4r Sb5LfI4/tVluZ38yYEhZvhUb4raSiekGDN6HtEs+2qRC/4cQ06ylw5PowUveRHtBkAFA5Yw3s BT1Py7//vfJaYyd1R2KqvXujzkJDJLCcp9MGAbh87wuxPgo8hqNYc2bOBLkwRsJJ3fINOkSql qlUauir2/v7BLAeOKecd9p1ASkLLWeS2ASEioxHNC6p3vpGDIxcXlpxRGbXcgKgupSgk= Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The only use of the local num_parents variable was remove, so we now get a warning: drivers/clk/sunxi/clk-sun4i-tcon-ch1.c: In function 'tcon_ch1_get_parent': drivers/clk/sunxi/clk-sun4i-tcon-ch1.c:82:6: error: unused variable 'num_parents' [-Werror=unused-variable] This removes the variable. Signed-off-by: Arnd Bergmann Fixes: 4de2d58bc973 ("clk: sunxi: tcon-ch1: Do not return a negative error in get_parent") --- drivers/clk/sunxi/clk-sun4i-tcon-ch1.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clk/sunxi/clk-sun4i-tcon-ch1.c b/drivers/clk/sunxi/clk-sun4i-tcon-ch1.c index 248585238b1c..b6d29d1bedca 100644 --- a/drivers/clk/sunxi/clk-sun4i-tcon-ch1.c +++ b/drivers/clk/sunxi/clk-sun4i-tcon-ch1.c @@ -79,7 +79,6 @@ static int tcon_ch1_is_enabled(struct clk_hw *hw) static u8 tcon_ch1_get_parent(struct clk_hw *hw) { struct tcon_ch1_clk *tclk = hw_to_tclk(hw); - int num_parents = clk_hw_get_num_parents(hw); u32 reg; reg = readl(tclk->reg) >> TCON_CH1_SCLK2_MUX_SHIFT;