Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5570595rwd; Sun, 18 Jun 2023 14:37:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ616nX7Thz/zT8qG6mJBKV0f7XUGJje7gIrgqDPd6XFbeOZR4/nzEkqO2cU5XHiZM6XMpEM X-Received: by 2002:a05:6e02:804:b0:342:7bea:5f3c with SMTP id u4-20020a056e02080400b003427bea5f3cmr1265998ilm.18.1687124223025; Sun, 18 Jun 2023 14:37:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687124222; cv=none; d=google.com; s=arc-20160816; b=dbjymo0C+be8DvJwSzs1kaj6VhBcRB4Bp7IwF1hDu7FZEMtj5PhSHLZg/mvsO6v7Qn TWTGuAgFSJzphCfaatMO4gNHyYBTH0ZMfSK3A2aRc2oZ0C1ITxFy0Ngob7t/hdctTXju eao4dEaAfbagaXwPSmnXnCi857uPcK+x9nKq/vfsjG3GKiyDNfPU0q56TW2gV342Yh0U ZHG5RryPRkYU9EJZtB4Mi+HvTwKxZlu8pShEysLQjXFV234VaxYlvtLTfxJYEOnB2Uok 0NYVdf8/BKYMdi1T6idRxgYbKFCWFHxni/d7GCFmWieJUtk0NlSlnBnUxzLhPWeQq6QR +whQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=w361mZKaVFHOMcQz6y0EclZKFDtawC9mE3iwVFvBeJU=; b=iF3DEOnNIz+HpnXDG0BSbIujwjroBKfO4o8paRw6mSR+lF/TFykMwerG/5JfGIHcyy sN+PXv4EQwqXe0kHSvQIRmbOB8fPQOnXWG30iEj7g+c32DZkVdpAKY0LCy8xtDt/TGro LCiNrVDPVlE3mKUSlIIY42Nb6loglLqyiHSIKdVvZ3c8T0+S9oZuC/xaEzrzuu6TVkM3 QRbigl6Z1xWFK1FwOHu7sG/8bhSGwEF4i40K4zV2hRRQ3yOnR2EBswNzM20MLWUucxXC aRj40aIvAiwN5JMgoOQzrpNPDumZTn5VvMEykojPePkrrUApLq1aiIcAcd63XJeX+FNu /FxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=a+nt65IS; dkim=neutral (no key) header.i=@linutronix.de header.b=Z1wdEtNg; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w14-20020a170902e88e00b001a979e702b2si5050478plg.416.2023.06.18.14.36.49; Sun, 18 Jun 2023 14:37:02 -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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=a+nt65IS; dkim=neutral (no key) header.i=@linutronix.de header.b=Z1wdEtNg; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229472AbjFRUuK (ORCPT + 99 others); Sun, 18 Jun 2023 16:50:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbjFRUt5 (ORCPT ); Sun, 18 Jun 2023 16:49:57 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BAE1E49; Sun, 18 Jun 2023 13:49:56 -0700 (PDT) Date: Sun, 18 Jun 2023 20:49:54 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1687121395; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=w361mZKaVFHOMcQz6y0EclZKFDtawC9mE3iwVFvBeJU=; b=a+nt65ISRspHmNz6EUMFWhLoSz/2eE3cDYrXdROUujBrsX+Nh4KzYpEYxJOS/Yyz7bDXvn MC6iES2zNbzGjs8NpDJSP75rtkuvG1ymJur+Vb6TWnUrfM/cSd2OYuJhgLWcYvsWvRwq7g VKgOP6PT/1U0sLu2fAhSFbQTptTPR+NGcPXLDDzwMjO5BhNTvzpJsTRQX4fqaLaB4c3U3D 45A9i80Hn262rrAjR8R8+MLjLR8yiSIlGtOvn9TA+P7I6KSbXwpZRI5PAnUdDE/xHzEsqC 7CEkM8LnSEo7cbOsmoxfyldujt1LOhncOUNTJvX0s+NeOZqA83dS+LsKdh23QQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1687121395; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=w361mZKaVFHOMcQz6y0EclZKFDtawC9mE3iwVFvBeJU=; b=Z1wdEtNge7as4oHLVW3ZDxpipRItO9LOY6iD5VAtUGk7M2jC1O+/OmlA43fzlcKNwd2eZ+ A05ZpW3YtbbBSdCw== From: "tip-bot2 for Li zeming" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] alarmtimer: Remove unnecessary initialization of variable 'ret' Cc: Li zeming , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230609182856.4660-1-zeming@nfschina.com> References: <20230609182856.4660-1-zeming@nfschina.com> MIME-Version: 1.0 Message-ID: <168712139462.404.10986834065061459424.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 The following commit has been merged into the timers/core branch of tip: Commit-ID: 986af8dc5af834071a8a7afdf2c3b7a57d562df2 Gitweb: https://git.kernel.org/tip/986af8dc5af834071a8a7afdf2c3b7a57d562df2 Author: Li zeming AuthorDate: Sat, 10 Jun 2023 02:28:56 +08:00 Committer: Thomas Gleixner CommitterDate: Sun, 18 Jun 2023 22:41:53 +02:00 alarmtimer: Remove unnecessary initialization of variable 'ret' ret is assigned before checked, so it does not need to initialize the variable Signed-off-by: Li zeming Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20230609182856.4660-1-zeming@nfschina.com --- kernel/time/alarmtimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/alarmtimer.c b/kernel/time/alarmtimer.c index 82b28ab..09c9cde 100644 --- a/kernel/time/alarmtimer.c +++ b/kernel/time/alarmtimer.c @@ -847,7 +847,7 @@ static int alarm_timer_nsleep(const clockid_t which_clock, int flags, struct restart_block *restart = ¤t->restart_block; struct alarm alarm; ktime_t exp; - int ret = 0; + int ret; if (!alarmtimer_get_rtcdev()) return -EOPNOTSUPP;