Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp686657iog; Thu, 30 Jun 2022 08:19:43 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s7+I7hiPhXod1CW9M16zAdf6pGg68SZ4fI0kP43NM6i+uZJ+J4U5ZzxWgetaD55B+OOBQC X-Received: by 2002:a17:902:aa47:b0:16b:8e4c:93d2 with SMTP id c7-20020a170902aa4700b0016b8e4c93d2mr15008029plr.27.1656602383596; Thu, 30 Jun 2022 08:19:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656602383; cv=none; d=google.com; s=arc-20160816; b=QnCea1bTlkBVRm8eC150SVMYm1mQtd/Km3cCZ403gOySLEWAK+GRAQu2Cv67Bg9EjQ Zq/Z19I/amS01r5T59w2lqVUkHea4fwUqGyzwLX5Qe29q5V/4dp7RQhmplVH8s2M8T9Z kerF2gDFAX3DllTf/NCq6Tfd6C+ovvLQsQ3XZptrRe6X2PvweguKkq181Endc8V7Vhrz rx4e1TLGzrtUji0I8y/0aG8Qvykxx1q/IoObijw0pMl9MkJWg/5UEcUOdA41R5B1ix6h 3lJpmB3U4UHyTZ/XbZYAmXdPf84efzvjsP2FVBYvNEoZd5QdosE/ZVi/TWITL9EgIFWP aicA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qKi6yRKs0nHx3lxAqOfInaJZHA/qUFf8PB9VMxOw89o=; b=DhRRO3+wdhOvzXnM6Xk22eIiAshgqFXo734ZgjZ4f5qdgvwdpoxOpeydzvzyzy79S/ wyCvXxzdn3VSQfR9HowQqdP8GdYKBDwHO5LllMH8LpUWkp9qjCtorEMBoJXkjJJn19xQ db37wO1ExK4y2XoNQIaXyg/LTOPbamLvVhCc1T8HdzS/U6TrkJMbH29vhJ/eMqK2issj z8btoibzAZOgq9Y1QfMCocFjfdElcgMP/sfX6KIDk2O9DShWqWYuuVROfOMEOWmKg1Es BKd2v5jHwIgDtisrWfiG6C59t59gc1q28d6f3vM5FBMPcZslEhD8b9Tybl0OApzeuk0l DdyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=DWJ4ZPxt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id il12-20020a17090b164c00b001ece9122d3fsi3630280pjb.95.2022.06.30.08.19.32; Thu, 30 Jun 2022 08:19:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=DWJ4ZPxt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235500AbiF3PJo (ORCPT + 99 others); Thu, 30 Jun 2022 11:09:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232771AbiF3PJn (ORCPT ); Thu, 30 Jun 2022 11:09:43 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81B4B2A40D; Thu, 30 Jun 2022 08:09:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1656601783; x=1688137783; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=dEIauEI3zkRv/Pfdo68/T9rL15iJxOA2RZaefQ/y2OU=; b=DWJ4ZPxtk7Mz7hdXrAyTpg4PNkiijCBTlhg9/20qj4SMMcOkisf0kIJ0 nT9sGa8mAHtlcBiSXvAa8/plJin1ikNABxlRuAYZDG5wk9OTBSO02k5e5 5rdrO5L+OknUp6dlLR/u4cBvXRQIG0gimS/QARqG3jc5YXYEBzW+1ZqFB X76m4wsg1EZxl3KfJqK9h77Y08VFhoFzsw9KP2uLc+DH9cc8sx38+OK/v v3OCIKMFjO2A1d7rxiVJgNYlNCcBlHN2o0aJJgDVy/8VJrtFE+VoNBdtF YFQPqTkKNPawZGKTp3C5IpQVF4UkYp+eE+N7+2Xa67SfCjoE9FLQsDj37 Q==; X-IronPort-AV: E=Sophos;i="5.92,234,1650956400"; d="scan'208";a="162789649" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 30 Jun 2022 08:09:42 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 30 Jun 2022 08:09:41 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 30 Jun 2022 08:09:39 -0700 From: Claudiu Beznea To: , CC: , , "Claudiu Beznea" Subject: [PATCH 2/2] clk: do not initialize ret Date: Thu, 30 Jun 2022 18:12:05 +0300 Message-ID: <20220630151205.3935560-2-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220630151205.3935560-1-claudiu.beznea@microchip.com> References: <20220630151205.3935560-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no need to initialize ret. Signed-off-by: Claudiu Beznea --- 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 1cff79a7f8a4..af6f8b48a561 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -2189,7 +2189,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; -- 2.34.1