From patchwork Tue Aug 8 17:30:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 131637 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp1172791vqr; Sun, 6 Aug 2023 18:43:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEy5ulSL8BvOZyIDB5A20lCkOoi0ARzwWaVyNUsXiNdeCVgfejmGRa77Xw1PjQVkcM+mRbI X-Received: by 2002:a05:6358:9883:b0:135:57d0:d173 with SMTP id q3-20020a056358988300b0013557d0d173mr4764328rwa.20.1691372632733; 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=of/Av+8JhaAGNw0Gxgh39ffRtqnhxa7DxfkRlFJyT/k5SZ0UiXJsTov1uyhPhZhILO kucm83Tfbimm1uwolC4HZriPOYGHvP1p+IDt+A5Ak4SPmCl5E/9sqg+CSq4ZW8hE/pkD oV3VPXqn8HOJaDqxC1N3RCGoPEZf31AUuvX+B8/JKgiViiEJ9aAUU4IC6Zll6YHS/2nw rjQo9XP+FKAUsR6nLe4m5+csHU1cFsPr24gyVGmwoHLs6ZXOTxdRTCqhI0zSiBTa6loj KjIK5idj+1TPkwcM7MfxB7wb1r5xB+keuFRNDI/+oq0Xq7nuXSuK5Jrdb0SC27jduNi+ jeeQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x30-20020a634a1e000000b005538c82b70esi2045452pga.101.2023.08.06.18.43.38; 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 S230327AbjHGA7O (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=3A_time=3A_hrtimer=3A_Remove_unnecessary_?= =?utf-8?q?=E2=80=980=E2=80=99_values_from_ret?= 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 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: 1773532749664427674 X-GMAIL-MSGID: 1773532749664427674 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;