From patchwork Tue Jul 25 19:50:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 124592 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp1550064vqg; Sun, 23 Jul 2023 20:40:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlEZGDCtjGJPAuad6Z6DKoczTQc/OPYM0124WANga66yHAQiPAcg9XmsVv+V4OwlpVAnF+Qn X-Received: by 2002:aa7:d8d0:0:b0:51d:9ec4:9616 with SMTP id k16-20020aa7d8d0000000b0051d9ec49616mr7309050eds.28.1690170034697; Sun, 23 Jul 2023 20:40:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690170034; cv=none; d=google.com; s=arc-20160816; b=azl0q1LbCD9058wAW+/gkJLPvKqqPu//bnbWAjPAqhxSybVxbE91vPIGlQCD5XsaQs d0bxG7gukC9GYZUq3qUPeKl02MehTYLlDBlwlcfTpQv9e33+rkvD21zSDL9O4a4xYMXu eoTaF8QdAmnMwEwH1ZZU8+4UcE9KJ/+ilD5HNmOkTvzJ7I6X3L77/id67wYe3UUojHwY RWQ21Y2txsYp0C2Y7vljkB+G9Tv7KR+5eG+wLAsHLaHNCSuN3vmSZ3PW1XjGcMmFp4d2 f+Q97AMfvyCTvr7B1QhoGBdcHNz4f/wAQNnxAMzGf7yZWXshwcbjJSaYC++1rE2tBbhX OUGQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f13-20020a056402150d00b00521656f855dsi6201280edw.110.2023.07.23.20.40.10; Sun, 23 Jul 2023 20:40:34 -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 S229870AbjGXDUC (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=3A_requeue=3A_Remove_unnecessary_=E2=80=98N?= =?utf-8?q?ULL=E2=80=99_values_from_futex=5Fproxy=5Ftrylock=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 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772271734068614058 X-GMAIL-MSGID: 1772271734068614058 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;