Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3330758rwd; Sat, 10 Jun 2023 06:00:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ75cYEL4Qx7qumk5ODPWySVikCaGw3PeDgi1KDqfYzgkJH8rre/S6gb6l4SJF9qMEjlw5qr X-Received: by 2002:a05:6a00:17a0:b0:656:c971:951 with SMTP id s32-20020a056a0017a000b00656c9710951mr10586347pfg.8.1686402001212; Sat, 10 Jun 2023 06:00:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686402001; cv=none; d=google.com; s=arc-20160816; b=K5ru01XOVlRgdpf0fB8A15fPh+/yB3nF4z+WRrEiMaFqGGHzyJ2xHlgWyj9V3Nhv7K v20rIzhc8A91tBmz2xVHPpa5Ua49bhiMg1nRt8tj4RXWpXIkBfOlOe7Ou1mz+HaBRUDB eVuvwdjqtMFvpdawt2ffibr80wrKgUX/PX9mlljl6C64tXRDuvLt/An6AoL9+G/hq0tJ mkUgjvfa3V2Us3MbVF4ixykPm7oNWsOHOp+9Brop2BcHg9O53p86vp77oADTTbZAxePX Wv95NQyFktYvhM1ZVvZhRZkvtOrAEAjyZe5qEB33BpzxwI+brBdStFzCxWjxiONsT0oR zzww== 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=Kmq5gX6ZPbnBJQ6HB2titUQycKci8ucePYtjBr899Rc=; b=KkaYoiErqZy8GcdE5VQdDxP/g2Mx2L01vzB/6bZH/N43QQlvhv/db7hOpaETcebtZ3 Fd4AGCn67BkqOngbpwQh0ehS6orp5qV4l/wVNAE4PxaZ1Sw/ALPWqPMfSuP72EWi4l32 hRNmPI0yjGEHbseDxF7Zwwo28H+uRd5kk5XaY103d3lSN3f7T/oFxBiDDDnXr9yk7+ps QDjOrsCV6CCoKKr5bPHZ7mLhjgQr4BvzTho6zlvcy1pTdJR31NXTfEodhKSfc8XEvHFZ 99m6iMvJLVlrwqYBtdPUelIL04/doeCBGqK/VvD/lbbL3zxV1QHuTW2SeXdK2bbOsHIM YRSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ktPmw1LM; dkim=neutral (no key) header.i=@linutronix.de; 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 k10-20020a637b4a000000b0053b29394937si4229643pgn.816.2023.06.10.05.59.48; Sat, 10 Jun 2023 06:00:01 -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=ktPmw1LM; dkim=neutral (no key) header.i=@linutronix.de; 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 S234634AbjFJMpm (ORCPT + 99 others); Sat, 10 Jun 2023 08:45:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232838AbjFJMpd (ORCPT ); Sat, 10 Jun 2023 08:45:33 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA70C35A9; Sat, 10 Jun 2023 05:45:32 -0700 (PDT) Date: Sat, 10 Jun 2023 12:45:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1686401131; 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=Kmq5gX6ZPbnBJQ6HB2titUQycKci8ucePYtjBr899Rc=; b=ktPmw1LM6OYdzfPb8FmStksFLQ/1E6A45Q1W7sQ7C1aTE3Y72Z3Tn+TdRB6f1Gjl8mRguu mfqzmjitA7jcP218qSe9q8+Hss7fc3oCRSI7Q8xuCIo8ZynXKjjArGAXmVUtsRaOwA7Jux Q5m/XQtwF37JknvBijExXoy9pFc2mY/iIpOlP64I29SRbPRXImTEdgr5weoM3MF1D8diQh /Zzb9g+3vLMreaTukWO11dmTOybkFld3MPyzWJHeoGLvGXoUNfeajNhOH1f4o00mwvqieB JjDzXHWhURKU6IMNBjkGMRBcnZQsw8DJP+wqCfAJWHA2fvuLNRGICIvBqyoBhw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1686401131; 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=Kmq5gX6ZPbnBJQ6HB2titUQycKci8ucePYtjBr899Rc=; b=CHdyrVTOvBYphDkDcPWO8qrwqRlnONQ1vPs8AQVpKKyDxrfVFHnf19zmchnmbYIiWzLFG2 vnORkBjrZlD30jDw== 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: <168640113089.404.17920315921648070254.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,URIBL_BLOCKED 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: ace380b014f338834d55082820a475e7c5b2c952 Gitweb: https://git.kernel.org/tip/ace380b014f338834d55082820a475e7c5b2c952 Author: Li zeming AuthorDate: Sat, 10 Jun 2023 02:28:56 +08:00 Committer: Thomas Gleixner CommitterDate: Sat, 10 Jun 2023 14:36:17 +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;