From patchwork Tue Jun 13 19:35:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 106185 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2329513vqr; Sun, 11 Jun 2023 20:14:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5lFpPP1XUdqDs3tg373SX2ZuwURJTRG5O35E2rOwCLKa95AAzV1ZnP/hDTYui7VH5hS9LB X-Received: by 2002:aa7:dcce:0:b0:506:741e:5c14 with SMTP id w14-20020aa7dcce000000b00506741e5c14mr4313900edu.30.1686539676102; Sun, 11 Jun 2023 20:14:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686539676; cv=none; d=google.com; s=arc-20160816; b=SRcZjZljXMJ2Phi4s/7J012EWgkdjcnQNUEx4X0ge2ZBkTLKGQ6R1xly2femh0XqrQ orshMWDCMY1I+5CEEv4HszZHZqJobkkbWWEee/pcerbkyr0SbhMWIiNEc9pwjrAkbn3x qUIDQOiRhYgEBqB1myKh3XoXr70AXY2KSgUQwXlnlRPh013c5iNTzVyQ00r7vhpE526K I3ffOteZDekWQyinesYhx5ZwaSxK5cNmkADg67GkpP25GCwd3nTq0H7G5seW+I0Msihl OiVK7jQb0/NdbCM2c2amFFFy1dNV8jdyt96tPzb/0lSiZiP3SqKIP6UR6KeEBKy3SGaB gR5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=GKE9BKK+MwSXqf4zwNHF7dsR6H8MF04TBAP6Fb2cA+A=; b=MwPeQpFTaYXm+AlhHHsPIuJLICWf86+DIrDEKce/pRCKVGE89DO+7WxTxY8DEux1aq IBXdwl5jlftJ+BWsjdzaV6Rf8INqCb1bUIWN467XgbSwOEjccLfYjcpIsU2Ln4/h8D2u ceCeAAq2HUxE+8RvgpPNaV77u+R+IakzSpgSL7nnXyTl/ZxDBFRumftnSKHxmWmUhHrP qu9AakwFqU90eQOG1anLEJAYCYwvdMhZsLZxXs59Euu+qF/KHCS+k03ni+Nz/8Rz79fp BZFAFj/gRkCnC284DDoPS3Uph3W67xt+2cQYtlwgjbfIamOEdLrYAAcGP0zRutn+/BVm oRUA== 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 n5-20020aa7db45000000b00514be2f2355si5358936edt.109.2023.06.11.20.14.12; Sun, 11 Jun 2023 20:14:36 -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 S233140AbjFLDFH (ORCPT + 99 others); Sun, 11 Jun 2023 23:05:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233614AbjFLDEt (ORCPT ); Sun, 11 Jun 2023 23:04:49 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 900FDE6E for ; Sun, 11 Jun 2023 20:04:46 -0700 (PDT) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 3A317602B440D; Mon, 12 Jun 2023 11:04:24 +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, linux-kernel@vger.kernel.org Cc: Li zeming Subject: [PATCH] time: clocksource-wdtest: Remove unnecessary initialization of variable 'ret' Date: Wed, 14 Jun 2023 03:35:40 +0800 Message-Id: <20230613193540.3177-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 X-Spam-Status: No, score=0.9 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_24_48, RDNS_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768465026976625601?= X-GMAIL-MSGID: =?utf-8?q?1768465026976625601?= ret is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming --- kernel/time/clocksource-wdtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/clocksource-wdtest.c b/kernel/time/clocksource-wdtest.c index df922f49d171..bf89700aa9bf 100644 --- a/kernel/time/clocksource-wdtest.c +++ b/kernel/time/clocksource-wdtest.c @@ -181,7 +181,7 @@ static void clocksource_wdtest_cleanup(void) static int __init clocksource_wdtest_init(void) { - int ret = 0; + int ret; wdtest_print_module_parms();