Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2710998rdb; Wed, 4 Oct 2023 09:09:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG8nq/cYIl1T3Zn4VfrK9KvgBLKHcwezxTtAlpcqnBhf+e3dyGWnli6FYFUSGBj9tjB5BRJ X-Received: by 2002:a05:6808:1484:b0:3af:6c30:f206 with SMTP id e4-20020a056808148400b003af6c30f206mr3563651oiw.10.1696435786222; Wed, 04 Oct 2023 09:09:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696435786; cv=none; d=google.com; s=arc-20160816; b=yomxmfo196vwXxwP/be4lkpMF8MA1kx5guta45+Fq5ZdaJZ/Ax6nwS+4xo1zmsFkge lkwdMlF3MiVZXQc7/TQcA39+lFda1LdoHkGKkYW/+4FkqmdBQs2SDyJdOf7mY8gD9J5u pi7049Zn/yYCLT7qHrneNYd+WIltXzoL7LrF39gG4A5MjZrX7+y+eZSw1ixiULZS5a8n a/bu+SRihh4TwrJcGmv3vCCr7kJG3qu5k+R5e8kBYerHd1o7Kvy0PMMeMITgAhtRd67M i/ZpKCtcBvQjDh/KymukIRdcPqwTkgH0/qIhOoaovLSCRlf6t/x+YhHkMT31SBSKftY3 Ydsg== 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=tco2oLrQfsIAEtlgl8Nce5/Ay0Sr42yRCzzDGiBrR/Q=; fh=caeQzssjWoCqvfJEgbZ/hQjkbGoQYdHqE3UvgyfpGiE=; b=IggxYZRk7X104Dj6kfhPO1TYEV3SvH0YAFyyz/EzRr8Xor6y+k9H5Jxup+znsI8pr4 n6yePjC0efsDGsNEYBP3YGc4NkTGWFuvcI3VAhvJDVBAuPoeEOdaiwdWIREi4anA2Iia XvQmI+68slxLRmS+AYuLDClzwi3bnFhSEFk5O0ohKtQiPtK/4ExCwgHUB9ETUpZ2VMlF bWyS+pMookHMcWbPhf8uXolsySNfhomvGjUxCB2WccGCcs7yp/BDyPgLFMTw3RWByLH2 jAj/V96i11OblPGM/zKO9UH7Wul0xx1x1YSD8314fUEKRANCLA2hXI25CcWL7slLk3uu CdvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xmvEdK1L; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=+JlsNjIz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id j184-20020a638bc1000000b0057884435a7csi3978725pge.292.2023.10.04.09.09.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 09:09:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xmvEdK1L; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=+JlsNjIz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 2F596802A546; Wed, 4 Oct 2023 09:09:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233283AbjJDQJq (ORCPT + 99 others); Wed, 4 Oct 2023 12:09:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233451AbjJDQJo (ORCPT ); Wed, 4 Oct 2023 12:09:44 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A967ABF; Wed, 4 Oct 2023 09:09:38 -0700 (PDT) Date: Wed, 04 Oct 2023 16:09:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1696435777; 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=tco2oLrQfsIAEtlgl8Nce5/Ay0Sr42yRCzzDGiBrR/Q=; b=xmvEdK1LeY9SnwT0MxVzAbsXBO2w3pW80AydelL8KdlB3VIcFO0h4vp1qnAm+uTUW4rqAM 89wIXdF9Al3SiNX3EYp3PCL2yV5IPI1vQiKPOkrHvRsH5NTJSbMVjbEIBMTKChYHaAhPcx ynlLS1iG9ao77IUB+6n9S0V3YKwWriYte/Q5l2GrAiRVvAe8GXnsH9uVEmqQtVo+AmVLle iDoihTnilhO76HcgxsQQWdaS8erieWBOrLpfH99fsyiyxq6PkuCMRUHWMWwMV+9dKnTqxM 34nZTdrdzIjX0BCabwSVhWFAQP7xbndrgRrBQPYymHchc9BVwJdksqQBOjSzXQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1696435777; 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=tco2oLrQfsIAEtlgl8Nce5/Ay0Sr42yRCzzDGiBrR/Q=; b=+JlsNjIzx0e3wu1n2YiM46cZY6K2of5+o37DGo6vsQpyOJF7zV3AdgHGIwREsrUmX9K5xm csiA0CGqmk8XbCAQ== 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: locking/core] futex/requeue: Remove unnecessary =?utf-8?q??= =?utf-8?b?4oCYTlVMTOKAmQ==?= initialization from futex_proxy_trylock_atomic() Cc: Li zeming , Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230725195047.3106-1-zeming@nfschina.com> References: <20230725195047.3106-1-zeming@nfschina.com> MIME-Version: 1.0 Message-ID: <169643577653.3135.1339527957884113798.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: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 04 Oct 2023 09:09:45 -0700 (PDT) The following commit has been merged into the locking/core branch of tip: Commit-ID: 01a99a750a4f414c221781de2e5570e0ceae04b5 Gitweb: https://git.kernel.org/tip/01a99a750a4f414c221781de2e5570e0cea= e04b5 Author: Li zeming AuthorDate: Wed, 26 Jul 2023 03:50:47 +08:00 Committer: Ingo Molnar CommitterDate: Wed, 04 Oct 2023 18:04:47 +02:00 futex/requeue: Remove unnecessary =E2=80=98NULL=E2=80=99 initialization from = futex_proxy_trylock_atomic() 'top_waiter' is assigned unconditionally before first use, so it does not need an initialization. [ mingo: Created legible changelog. ] Signed-off-by: Li zeming Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20230725195047.3106-1-zeming@nfschina.com --- kernel/futex/requeue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/futex/requeue.c b/kernel/futex/requeue.c index a0a7995..16a3645 100644 --- a/kernel/futex/requeue.c +++ b/kernel/futex/requeue.c @@ -269,7 +269,7 @@ futex_proxy_trylock_atomic(u32 __user *pifutex, struct fu= tex_hash_bucket *hb1, union futex_key *key2, struct futex_pi_state **ps, struct task_struct **exiting, int set_waiters) { - struct futex_q *top_waiter =3D NULL; + struct futex_q *top_waiter; u32 curval; int ret; =20