Message ID | 20210923132046.1860549-18-claudiu.beznea@microchip.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=WZ3G=ON=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BDB40C433F5 for <linux-arm-kernel@archiver.kernel.org>; Thu, 23 Sep 2021 13:34:02 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 92F2261211 for <linux-arm-kernel@archiver.kernel.org>; Thu, 23 Sep 2021 13:34:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 92F2261211 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=P0GJ0wMzMCtDVtTylKUfHKqzfjFgmt11aEgjx6hS2/I=; b=cfNyiq3QerFo6B s70/AE+xYRiLctfaQRh4DMOOtxyvWM/qV7A5YUAFbOZuSFOwM0UdLPsLCe2U083EXNZ9fbzohlsuf bse0fGZp9T9nQIGvE5LNfkFxO2uFxIWCBFhplxsECibAVqdLq2HlRwZ8OFjGZA3AQx+vPJeqXTv3L eonyxQ4fjKzTdQbIxhSfUrlcUMVnW8iIDYxPVoJK+tMRkFAeTZxjy5fyOg6F/Dro25kX+8NgQZdy9 bl9Sf2CqET/G8uf0nJ9UGT6p5gG21DBNGJMUszGijgvPAKG8AF4whAi4R+0RA/heOa0pNKD5waSGj iGUzxjXRSiFj7A5njCHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTOpW-00BeCL-OC; Thu, 23 Sep 2021 13:32:03 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTOfZ-00BZcK-2t for linux-arm-kernel@lists.infradead.org; Thu, 23 Sep 2021 13:21:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1632403305; x=1663939305; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=QVpsGQacYBazRN4bjzMQ0GaU+hULlQ1/8bIf+zxYHAo=; b=vuoJYRmLG2fkXvnEIby5aiz9dAoCaUdfc9ww6la3p36pBP/W1HujVObM 54wWWO/MIoMSywbyVVufvOy6koS/bQrefngSEgMf1h2RZGP2rGQk4jp2b /CfXx6UNCFQT8V/Bo/UoyfNTjOWDHGAORnfYwKesPfvn2Ydkw+aKZK2zo kodhb9q64FvhHJmZM4KHls+W9fW2rOu/mwEAGZ4vEaMmfOcS34cSVITaw myLNnOgRvuyVfXgyxUjkm6GkFF3BFcTcXF/cp54PnLiSOeuddY0bx2AML kCg3OuyYPRa0tP6uhAzcv0WK2dUm/OwoKJDCZl3CowZT60e4rCl4YCixQ A==; IronPort-SDR: GQ4MQtfibrFgCkykZtbKAF3droCnjQBYTd4D0iqkWxCAnqwxDPX4MfLtdK6AMKxNll+AV0GnZu CrYmMYa+ZxvIXh6lbXynVlK2mOdtLULwTao2b5c3jXvukvhl90WmI6ZWJ7wzV4kbxKjcs65otV l7eRaa2k/4nHD+sms+4fG3dBBu2Nq2MyJNXhczT0mObgXmgxe0ZlYnU9ET9YbLle6zr4FSPoL6 E5eqEKLdpIB+23XuqXOSkiBERGiUS99ABAEjZnvwgrO5hKDL7scZKaRM6XvIxiTNzC5fkjnGwD erR4F6IeKtp+RajoRURZnl8z X-IronPort-AV: E=Sophos;i="5.85,316,1624345200"; d="scan'208";a="70327459" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 23 Sep 2021 06:21:44 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Thu, 23 Sep 2021 06:21:44 -0700 Received: from rob-dk-mpu01.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Thu, 23 Sep 2021 06:21:42 -0700 From: Claudiu Beznea <claudiu.beznea@microchip.com> To: <mturquette@baylibre.com>, <sboyd@kernel.org>, <nicolas.ferre@microchip.com>, <alexandre.belloni@bootlin.com>, <ludovic.desroches@microchip.com> CC: <linux-clk@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, Claudiu Beznea <claudiu.beznea@microchip.com> Subject: [PATCH v4 17/17] clk: do not initialize ret Date: Thu, 23 Sep 2021 16:20:46 +0300 Message-ID: <20210923132046.1860549-18-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210923132046.1860549-1-claudiu.beznea@microchip.com> References: <20210923132046.1860549-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210923_062145_231908_ADEB24F9 X-CRM114-Status: GOOD ( 10.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
clk: at91: updates for power management and dvfs
|
expand
|
Quoting Claudiu Beznea (2021-09-23 06:20:46) > There is no need to initialize ret. > > Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> > --- Same comment. Feel free to send them separately. > drivers/clk/clk.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 815fe5f6651e..b854c18e73af 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -2175,7 +2175,7 @@ static int clk_core_set_rate_nolock(struct clk_core *core, { struct clk_core *top, *fail_clk; unsigned long rate; - int ret = 0; + int ret; if (!core) return 0;
There is no need to initialize ret. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> --- drivers/clk/clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)