Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2436506rwb; Sun, 6 Aug 2023 18:47:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGOd5QJbCCjrN5hom3CB6Hc37SDvfJRB0grRhR4unBd+s/iZidkVOQqzYmcxOSLdMTvVi8z X-Received: by 2002:a17:902:b191:b0:1bc:e37:aa76 with SMTP id s17-20020a170902b19100b001bc0e37aa76mr5314968plr.6.1691372835014; Sun, 06 Aug 2023 18:47:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691372835; cv=none; d=google.com; s=arc-20160816; b=JwNPxe7Eu4uPrny7gyeusHpvn9cOc196pnj542jKALcAPau90yZXOJSMB1e5DiWBVd ffCBWZvW2KQdspaZRNeqyrut05hUdM4TmGq0bR8wG9FVyxkWPfpvXcpBeUiTuqKW/5HD 3doZWcwweQRC3HLA2UuhwGmTvjPyUV9Y5t1f0b9lRuzYFcKQC9Beo5MnSMnf+w0JH2ob JY5Akg7LnsRlD8DMlic/IxkjZLNd8Dsi2lG01b0Myq9e4AJCtvPVnqmQKLDcIUVOzmjf jtsZkUaOodNTEgMtC7aWtuQlXI9KxKdGaDZ1BLVxRuq3v7p8O7OTYPp9HipvNQ3sIZN1 OvKA== 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 :message-id:date:subject:cc:to:from; bh=SyN6/xtQgMTIFns6YBplmQpHoi9kbsPmbhxDLkXfee8=; fh=cdzbybEE8pI8liEkMwWU+G/cGRl1J9aiI6DhZnf1lZY=; b=Wr3Qa5yV4EAW5aUk737ccMQjkbBJnBqBcqiEum5rAjI0Smev9zrROo4afY6hC6nFLJ /HLh5b7Q77T2A7fOR/xZV5udpmmlkHc/X0MnkmZ06QDYORShyZmauWrhzb9fCXv8UcOg 6ElVyDIwljf5vBf3UrhzUBzptEx0+NTrGNUxRImjYGx4w96F9CxSqtmDywJmMFdZqi5j Dqqsv64ZFgBhAW/MI6yhdyE0v15aAZX5PESKYHPSkZJE/ixVM57JMC5qH/VZ5mHx/gi0 lzLNLMdJ8s+Jpv3IaKx617PfprE2GNQjFRoEOnx04CZBOBeD79w8LbG8ImS+6QhipY2k 3+jA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l7-20020a170902f68700b001b8a5cec6e4si5208379plg.251.2023.08.06.18.47.03; Sun, 06 Aug 2023 18:47:14 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230199AbjHGBE6 (ORCPT + 99 others); Sun, 6 Aug 2023 21:04:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbjHGBE4 (ORCPT ); Sun, 6 Aug 2023 21:04:56 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 00BC3170A for ; Sun, 6 Aug 2023 18:04:55 -0700 (PDT) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id DE994602AFEDE; Mon, 7 Aug 2023 09:04:52 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: jstultz@google.com, tglx@linutronix.de, sboyd@kernel.org Cc: linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?UTF-8?q?kernel:=20time:=20clocksource:=20Remove=20unnec?= =?UTF-8?q?essary=20=E2=80=980=E2=80=99=20values=20from=20ret?= Date: Wed, 9 Aug 2023 01:36:11 +0800 Message-Id: <20230808173611.3066-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.9 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_24_48, RCVD_IN_DNSWL_BLOCKED,RDNS_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no 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 ret is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming --- kernel/time/clocksource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c index 91836b727cef..b4ad38812ef7 100644 --- a/kernel/time/clocksource.c +++ b/kernel/time/clocksource.c @@ -1289,7 +1289,7 @@ static int clocksource_unbind(struct clocksource *cs) */ int clocksource_unregister(struct clocksource *cs) { - int ret = 0; + int ret; mutex_lock(&clocksource_mutex); if (!list_empty(&cs->list)) -- 2.18.2