From patchwork Tue Aug 8 17:36:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 131638 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp1172793vqr; Sun, 6 Aug 2023 18:43:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFeieZi0heG63/ouPvdjpSe/uDKI1DziikNEuK9ZceOPQCyIaP3XjncAs8UxCO94ZkSnL4a X-Received: by 2002:a05:6a00:2d91:b0:687:2cba:67ad with SMTP id fb17-20020a056a002d9100b006872cba67admr7342991pfb.2.1691372632775; Sun, 06 Aug 2023 18:43:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691372632; cv=none; d=google.com; s=arc-20160816; b=RcVka/4f1xPtnFWNjaZIsZKNRKFDx0qFwLpoH9D+O33YJpApW9LcKQddrehDDsEIfB fzY4AYkK8uhDhZlaSakKNLw8nzkBXR0AODJgBdpVm7hRjBLC0fFt3HfeJ+FbxZe/Wp3Q 3NbMqvmkt28L4eHd6JxqWHHozlh8eeYinYMU+5JkQDv1oFxkS6ZbQrw+YBIzbifjh2Cf FEVGrMo8JVfKks6n3XVH3f0EGeuOXPMfclYd4DapUnnrMcyz/B6bvPvXltIhT5ymWgdd TpqjimL17Oo4n/qF57BSoaxd4wVHDNM+d+lFKC7UZHuGx9BL1aPYPUEEfAeRhRfvIVio UlsA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u15-20020a056a00098f00b0066767d61b7esi5018124pfg.331.2023.08.06.18.43.36; Sun, 06 Aug 2023 18:43:52 -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 S230244AbjHGBE6 (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=3A_time=3A_clocksource=3A_Remove_unnecessa?= =?utf-8?q?ry_=E2=80=980=E2=80=99_values_from_ret?= 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 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773532749627892021 X-GMAIL-MSGID: 1773532749627892021 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))