Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp2637513rwo; Sun, 23 Jul 2023 21:08:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlHSn0jicaV4bKMG6EI14nTx0xuWB7XNlhCWbyRnyWbyb4sj5cCnrte9/mbAoTAiCmC5GDPq X-Received: by 2002:a17:902:c945:b0:1b8:88c5:2d2f with SMTP id i5-20020a170902c94500b001b888c52d2fmr11896346pla.64.1690171722598; Sun, 23 Jul 2023 21:08:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690171722; cv=none; d=google.com; s=arc-20160816; b=Ut5aToqn18HsokyqM4qpOAqCw6HNEIk3tTjYl6DqR78uu9hDXwYP0ftB0Uv9QlXc1f YOuKGeJ0jGC+b0DDE5N1oKC6DrVz//BOOJENiWObBi6PJmjwE5rcdctNukvzwD8RmE46 Y6K2r1X20DlwENLzh+FRogMeaKBbCgcIRPZCParjD56mqy0xH+H2OGYqjHKfHDopuhWQ 4ohbVGnOIksosOBENzj9B5LoGbX/ePei6daMKqiwUe3SljZCYUbeXEk+iJxGkKXRl70Q dRvakKETLCsOqIw9FwOfXwDke2iBtx8hjpqoi0xuTD/1zW8fwHJQ6mpTl79x1bXkySi2 FK7A== 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=dsUwt8DMauP0ixRPIURSZnjuA0DHneZ5z4vpb10/RdEtt1ioY3S+dEZpyUxNUjHCa8 KQpqtdYJf8v+mL7NNZFjwrbLupayWHKePtn7kZEa0SjSM7T6R0XGaRmtglj5yWKri9S7 mTex0RelG457Gq4oTt/h+Box5OyMM96TlloK1YWZ+9AUf/khq34wu34OrXBHwA114hqm 480ms/I+QppOhrculoEUeEFlbZoXxcOt3OO/J+cis44qWabOWqf0RgYBBWQ9WjbE0A4Q ppmrba333j9xXcQ/DU88Eg8HGHyJGWgHmIYtoAAnDzTU5sLlpPkC5szxnnw4xECepWC+ Up4g== 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 d6-20020a170902cec600b001b3d6c68bd1si8535758plg.643.2023.07.23.21.08.30; Sun, 23 Jul 2023 21:08:42 -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 S229983AbjGXDYt (ORCPT + 99 others); Sun, 23 Jul 2023 23:24:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbjGXDYp (ORCPT ); Sun, 23 Jul 2023 23:24:45 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 87C78E40 for ; Sun, 23 Jul 2023 20:24:43 -0700 (PDT) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 3136260743758; Mon, 24 Jul 2023 11:24:42 +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?time:=20hrtimer:=20Remove=20unnecessary=20?= =?UTF-8?q?=E2=80=980=E2=80=99=20values=20from=20ret?= Date: Wed, 26 Jul 2023 03:56:02 +0800 Message-Id: <20230725195602.3279-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, 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 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