From patchwork Tue Jun 27 17:58:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li kunyu X-Patchwork-Id: 112701 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7203826vqr; Sun, 25 Jun 2023 19:36:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ny0FlElQRy7iktFNY4qyvhxZnnY3ICW/wuxbX3IlkKmeWcEY4AJg77hT2WWvmcZAQ5iAN X-Received: by 2002:a17:902:ed52:b0:1b2:48a:57fa with SMTP id y18-20020a170902ed5200b001b2048a57famr5834338plb.56.1687746995093; Sun, 25 Jun 2023 19:36:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687746995; cv=none; d=google.com; s=arc-20160816; b=UFZgHQpVJT7id2a4ITLTuXXteGuSNtLd2qJ/Kyv0y4Z4m93XVyHEakYIo5dWJ4HChd OVXtfXLqfo+RHB+7n4RezHzxD0VWWyt0qbrF0PhOZUsnZsRHXnRruCllxQpYNppVQx8P Z2A0xq6oQ65sXO8L9Egb/HvxouYtDc32x3NdVo5uIv/ivZo2TOMkMctx/MfeKnHlJbeE 7Ww1GM3FfAab/M4mkWyaJstuDz9dmzLfI5EEfO+Ld/o9iVR52jxjVY7xOLPfbIoAuEHR DzTIKPxorFO+7Fr1DntYSOPVDdVRAecyVqjjc0gX2wy8UwnfBpgiiOACugQawluLSXd1 Xp0Q== 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=I8m16WAI9tYTEcWKxM0PMNbvcLKw0sw0t27DTTJhf5o=; fh=4tTPbq80z3JWpU6usrUJUY0TB4QWb38m1ChSDUMlkLU=; b=CH6/J0t/669rvRgPLY0FwBL9lfIim22Yjw17V0IggjiMv4sGdjzetoKOXm26jYo/Bz 66YFvXpQv2rV7xgNDcJQPVWOCyMBTXEuS2zrlbXxjGZiHB6pvqYeFWssJ5xE7eELwlY/ mpuEPvg5yERryhBAj5EwALn6edNQfFFtU3bFJKSGnLPZsEwNtDkvXp6G5KIRJzUPzgoX BQDgO7NEFumzCiEfNi4Eoc2wLajO6oPf1Jmocz9TheZa6UfdwpuVOuAFjr4wLQgPWEhK sWF88gmZXOT981bTYbUeNxPMeOZ0AlrEVmFvcNCymwqYx69z6O+Un4wPNtlNqAgZHEl5 3B+Q== 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 x2-20020a170902ec8200b001ab1a00d95dsi4534432plg.250.2023.06.25.19.36.21; Sun, 25 Jun 2023 19:36:35 -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 S229848AbjFZB1t (ORCPT + 99 others); Sun, 25 Jun 2023 21:27:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbjFZB1r (ORCPT ); Sun, 25 Jun 2023 21:27:47 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 58DF6BE for ; Sun, 25 Jun 2023 18:27:45 -0700 (PDT) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 5D1326061F468; Mon, 26 Jun 2023 09:27:18 +0800 (CST) X-MD-Sfrom: kunyu@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li kunyu To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Li kunyu Subject: [PATCH] =?utf-8?q?time=3A_hrtimer=3A_Remove_unnecessary_=E2=80=980?= =?utf-8?q?=E2=80=99_values_from_ret?= Date: Wed, 28 Jun 2023 01:58:37 +0800 Message-Id: <20230627175837.4995-1-kunyu@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, 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?1769730992945636732?= X-GMAIL-MSGID: =?utf-8?q?1769730992945636732?= ret is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li kunyu --- 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;