Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp2622233rwo; Sun, 23 Jul 2023 20:43:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlEuJnuo+eh8w33L913bqPdP/hKmAnfxNPVJU5AZf+1vlfCg3TTCTa087I9HiMjAyFy1eMMx X-Received: by 2002:aa7:d30a:0:b0:522:21a1:5153 with SMTP id p10-20020aa7d30a000000b0052221a15153mr3597133edq.11.1690170202002; Sun, 23 Jul 2023 20:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690170201; cv=none; d=google.com; s=arc-20160816; b=mi5LyZA/LXlFHDar7wmyj8s/Z0pv1NRp6YByl30b3/2EzCEPajj5Pdfp1Khf7nfpEb Zele/AAawfmvvSI4qYibCwzPsk+lTs4PJ12vrFDRzP9jC6Ywaf0A98zdpc1ODv0n4AWo LMYqcB4OgMPULUsyiGoKbAdx5+/JkIugZjFu4RxKAy7dXpl94ecCnwbLORr6zh8p1OGH nVZugZVKjvgn/8UOzDrolDzlkvcV6suNbXe9dDk9FVUFekEYSbWXI1A71gKPlzMJ7jqR 8TtdAIop/UBqNLjonp70yFpYoGtq7rM6hrHg3k6dpjQwF4T2OB+8J7bn8+/E9+Rav00/ x0Ew== 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=U1Gk8Uo3e2nKIZc9GM2VuHBa6DQ4kYSqwFOcl5LKWlI=; fh=o8d2w8Zyepg816Tqd1TTIoedUBgMTQpIR5Y+a3gXc+s=; b=slnoi3l+NKzAdSo0P8iWhrNP84LF6rEqi9v898k3uLL+DslxRdrwyvQPjiinQdJhJR 6JdivymbUzGtOF2bH2DliBWeQwTnZVR+c1vbgb9fBq6feaLKeBhyM8HROxXt5zw9q2GB Ge9MKgkNC2kydg3YB/xwo/+4P/bDme29TBrFKznktb5Waph6Pn9DaEQ+Vhc6/aafUFBb x2qTvRzmJJPqWhMe7XN7vEALbWgVSvpCHaydRa2OlafA3E4YzzN+VCBlp/JcEJ31ctTn P2FVblubtUsPblWDsDbmh0niKIISxtsWv5gWX0sJq29O2BI0+VfoZJXtpjAzFv9mh8tW 5ZHg== 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 m13-20020aa7c2cd000000b0052166e59367si5685029edp.330.2023.07.23.20.42.58; Sun, 23 Jul 2023 20:43:21 -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 S229849AbjGXDUC (ORCPT + 99 others); Sun, 23 Jul 2023 23:20:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbjGXDUB (ORCPT ); Sun, 23 Jul 2023 23:20:01 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id C645913D for ; Sun, 23 Jul 2023 20:19:59 -0700 (PDT) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id A56626073E99C; Mon, 24 Jul 2023 11:19:38 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: tglx@linutronix.de, mingo@redhat.com, peterz@infradead.org, dvhart@infradead.org, dave@stgolabs.net, andrealmeid@igalia.com Cc: linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?UTF-8?q?futex:=20requeue:=20Remove=20unnecessary=20?= =?UTF-8?q?=E2=80=98NULL=E2=80=99=20values=20from=20futex=5Fproxy=5Ftryloc?= =?UTF-8?q?k=5Fatomic?= Date: Wed, 26 Jul 2023 03:50:47 +0800 Message-Id: <20230725195047.3106-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 top_waiter is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming --- 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 cba8b1a6a4cc..acf0801c285c 100644 --- a/kernel/futex/requeue.c +++ b/kernel/futex/requeue.c @@ -269,7 +269,7 @@ futex_proxy_trylock_atomic(u32 __user *pifutex, struct futex_hash_bucket *hb1, union futex_key *key2, struct futex_pi_state **ps, struct task_struct **exiting, int set_waiters) { - struct futex_q *top_waiter = NULL; + struct futex_q *top_waiter; u32 curval; int ret; -- 2.18.2