From patchwork Wed Sep 16 16:17:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11780815 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F41ED618 for ; Wed, 16 Sep 2020 20:30:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D3D7521D43 for ; Wed, 16 Sep 2020 20:30:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600288224; bh=rDklET3URHRDBZEvF6OLfVutgrEE+P7xngbDw3ovJPk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=deq/iTuL8PuB6wJ0gtRd0y8JJu7xw2jly5lnkqfMlvEW/EA4vDybyELCAq0OLuLzE elQacYBnOv6I+CQfIr4rAcGMoOWxdMrBGgwrwgXGklLkyz7igchDdXONlVblDjdwcM UerzW7nQzZwLt/1zOLr1+rE20h8KOScKIGJ1Mqh0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727209AbgIPUaS (ORCPT ); Wed, 16 Sep 2020 16:30:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:33730 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726840AbgIPRM6 (ORCPT ); Wed, 16 Sep 2020 13:12:58 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D510222596; Wed, 16 Sep 2020 16:17:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600273084; bh=rDklET3URHRDBZEvF6OLfVutgrEE+P7xngbDw3ovJPk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c2qzRyizp/VEct8ssgms7hbJXVwjVImM85Q7xFsmmmORaJJoUfwUgoBGEFqi0by2T G5IZj2iDxNypoGC+dc+C7hgmzL2KBMi2fi4175i+oyaRfPHYbrPLSGxuuLOR8gaieR ArI/ZIcqrnWAWOtZotaHfvbhZ+dh7bfZdpN9lSwo= From: Krzysztof Kozlowski To: Michael Turquette , Stephen Boyd , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , David Lechner , Sekhar Nori , Heiko Stuebner , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 5/6] clk: si5341: drop unused 'err' variable Date: Wed, 16 Sep 2020 18:17:39 +0200 Message-Id: <20200916161740.14173-5-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200916161740.14173-1-krzk@kernel.org> References: <20200916161740.14173-1-krzk@kernel.org> MIME-Version: 1.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org 'err' is assigned but never read: /drivers/clk/clk-si5341.c: In function ‘si5341_output_get_parent’: drivers/clk/clk-si5341.c:886:6: warning: variable ‘err’ set but not used [-Wunused-but-set-variable] Signed-off-by: Krzysztof Kozlowski --- drivers/clk/clk-si5341.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/clk-si5341.c b/drivers/clk/clk-si5341.c index 3d7acab9d280..e0446e66fa64 100644 --- a/drivers/clk/clk-si5341.c +++ b/drivers/clk/clk-si5341.c @@ -883,11 +883,9 @@ static int si5341_output_set_parent(struct clk_hw *hw, u8 index) static u8 si5341_output_get_parent(struct clk_hw *hw) { struct clk_si5341_output *output = to_clk_si5341_output(hw); - int err; u32 val; - err = regmap_read(output->data->regmap, - SI5341_OUT_MUX_SEL(output), &val); + regmap_read(output->data->regmap, SI5341_OUT_MUX_SEL(output), &val); return val & 0x7; }