Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2426212rwb; Sun, 6 Aug 2023 18:29:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFqplSkaVUNwQO8H+dJAQfN5XkzgDIrWvnazB0cHgVXqeMgtOJrlDSoqgNb/WL4j1aayNNK X-Received: by 2002:a17:907:75c9:b0:994:577:f9dd with SMTP id jl9-20020a17090775c900b009940577f9ddmr6207934ejc.9.1691371771812; Sun, 06 Aug 2023 18:29:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691371771; cv=none; d=google.com; s=arc-20160816; b=bd9KTKW1eAt06FfrFNgjJUkLVhoCTtySTiYuWSZKdmA8k8vL26ujwtBka+suGKaf7q eANo7mL8PvrHHD9RKP0N25fpbg7MWewUHbvp4eaqQMvITmDszC0+K6amLCOLttFL4LgK lUYWDRqDzeFXM7qZHR9l1Oi1ncvLYKN4XHngKTUc2JCr3ZnLvCe0pVrqGnPqI4/kXmul Xd81Vn7+YjyKzevvw4v8A/HqdEMpbRoxLYo+LjI2S5vo9Bxe4t+42V2whPije3BohsB4 9b5YMHtnDzC5eJ2GMgDu6ui2LUgTsPjQqrWulsBLlnkxP8myX0Ik0W7r9g10kWt6vGUU FHuA== 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=N3XSAgLoqxObSV3pHEaoJdyjtWI7VAbs2KPTUQ6m/SM=; fh=k8YObfcsZofXDPHOZnIbpSVrvMgYfk9fpArAcCZdHOw=; b=AwruOV9zy6ZJoavkiAa6F6j2iF/Dc7qCkGnVkdvmd30XYNGlFwDEZtWZCE4EPtnTyO MWab1O94mYPRVuIGkPrP1XGyx57/Spik8gQUThk0Bf4lzhdttieD+weAu6WQf+3S3TbU kj78m7FYwdtVSH4eY11K9GC1HLr3dr49YD7n7uU7jNyKxa3mUdoFadMBJWwq3onPY6Mi 4ges0V0X49zmYrB11DgK6eML1Sj0hgBsuPHtpF+ZEHI1l3sXy/toYtFH8A9kv1xUg7gW FGGfdBgcL1chlxi1GRZ1RZx+iP/Ryu6vFz0BAwRDD8i7DgSoUAVCMPNDwIDsNWGNHwkD MIcQ== 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 k18-20020a1709065fd200b00992ac0466e2si4006713ejv.653.2023.08.06.18.29.06; Sun, 06 Aug 2023 18:29:31 -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 S230325AbjHGA7O (ORCPT + 99 others); Sun, 6 Aug 2023 20:59:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230251AbjHGA7M (ORCPT ); Sun, 6 Aug 2023 20:59:12 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 9A0B21711 for ; Sun, 6 Aug 2023 17:59:06 -0700 (PDT) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id AB6A3602AFECE; Mon, 7 Aug 2023 08:58:56 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?UTF-8?q?kernel:=20time:=20hrtimer:=20Remove=20unnecessa?= =?UTF-8?q?ry=20=E2=80=980=E2=80=99=20values=20from=20ret?= Date: Wed, 9 Aug 2023 01:30:01 +0800 Message-Id: <20230808173001.2871-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/hrtimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index e8c08292defc..9f90e76c6cd9 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c @@ -2085,7 +2085,7 @@ long hrtimer_nanosleep(ktime_t rqtp, const enum hrtimer_mode mode, { struct restart_block *restart; struct hrtimer_sleeper t; - int ret = 0; + int ret; u64 slack; slack = current->timer_slack_ns; -- 2.18.2