Message ID | 20230725195602.3279-1-zeming@nfschina.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp1558636vqg; Sun, 23 Jul 2023 21:09:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlHgRRMYSilo8obLTmWpMSh4iRI3RLOwGog+6N2xGBG96mdiYVUNeVU/n/hOZXYNnJL4hzbc X-Received: by 2002:a05:6358:6f0c:b0:134:61a5:7f05 with SMTP id r12-20020a0563586f0c00b0013461a57f05mr2889408rwn.10.1690171750284; Sun, 23 Jul 2023 21:09:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690171750; cv=none; d=google.com; s=arc-20160816; b=j/fP0VNL6U6xWwWvRVfdqwt+wLCqhlTJEtXlGOfH/ffGgjeGNfPG12cdEoQ+Zud+nW MSpNy1E2ml07HAIcap9UElBBujnLTcAlhOQInmXD+8aFYuEf/v0zB82aOH6YGv9YCMPS TpFml0U417SDhtpOIYtxEHP2gYsqbpqnrL9/BeY5BpQo76GegfNbRWT92q5Hv0epghcS uNwMMOeCK5IQkioidv9VZ5WCgXDW4YjlUcz0wio1iDwlApUT2jjHEVcfD/PEhqcA/UvF k68EljwmsD7uHXpjj/1TEpQ8AUKWDUqTVEdV897xLqF0YUBflQFbKTocKtoqZZ+zQIIJ B8vQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k184-20020a636fc1000000b005638355e990si6582073pgc.410.2023.07.23.21.08.57; Sun, 23 Jul 2023 21:09:10 -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 S229699AbjGXDYt (ORCPT <rfc822;kautuk.consul.80@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <zeming@nfschina.com> To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Li zeming <zeming@nfschina.com> 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, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772273533315640803 X-GMAIL-MSGID: 1772273533315640803 |
Series |
time: hrtimer: Remove unnecessary ‘0’ values from ret
|
|
Commit Message
Li zeming
July 25, 2023, 7:56 p.m. UTC
ret is assigned first, so it does not need to initialize the assignment.
Signed-off-by: Li zeming <zeming@nfschina.com>
---
kernel/time/hrtimer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 7/26/2023 1:26 AM, Li zeming wrote: > ret is assigned first, so it does not need to initialize the assignment. > > Signed-off-by: Li zeming <zeming@nfschina.com> Reviewed-by: Mukesh Ojha <quic_mojha@quicinc.com> -Mukesh > --- > 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;
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;