From patchwork Thu Jul 13 23:44:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li kunyu X-Patchwork-Id: 118893 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp976884vqm; Wed, 12 Jul 2023 00:47:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlEK7QNY77m4faoQkLGn5EpDkSUeriat/Z5lP+Y8vhczKuUkFy2PLmKbcrhUAJuEYmT61IZg X-Received: by 2002:aa7:d353:0:b0:51a:42b2:cb83 with SMTP id m19-20020aa7d353000000b0051a42b2cb83mr14196239edr.42.1689148077775; Wed, 12 Jul 2023 00:47:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689148077; cv=none; d=google.com; s=arc-20160816; b=ghyCa1ly+HQuajRyReFICC0l8pjwUpRFtyPXu2/lavqy+EfPPbEVmaBfMkfs2GSmet r41lOlslvXOwxQkc3zRmRUh/wYKtWFokJLPU+5QtE3mjGfGX4G1dn7kUvbfAN1rVelD2 28525RxVaCNKuBI7joCLjDKlcOsKIHZqgKRkzsFQwRMCS9GrpGEXDgzAl4QISyxlAO9W 9dIHQsAtrOtlkfRPQc/ZN2YGuOej0h9TDZ3/k52WCKRDECneTT+31AP0/dtH9imfFyaM aGguE1kegOSTud85NyK+aQZQLRL3Cq8UzGx/MwL0/DpYFpn99ZMIQcw4cDftrYhZjC4e Pv4w== 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=/rb2P9oBXk545w9Tyd9tdMipo4aAskWNqc+1/nryuuM=; fh=DQhQpFlrgRlPFO3Q6ZMquDvem88o1DefeDpyoSyZaGc=; b=q++cGerq0efb6LwARnQwYAK1UYwW/k5DuW7WviDcJxIOJ+Pa7XgFS5EBt4EtMet7a/ +4DSuL5Yh+6eMALo6jqHYG/mQqk51KiK2q9NUgT6NmuFTED06bOZkZ/UTk664rJxKL8F 2/UnWrvsS5K8gZnL+xEUSNdf7qxrys9Ih2uYrlW1Ulwk2oGq5TpInXNSmI79yd9sn5YZ 7H8Q7lA1VSshK8adN5bzlctowqG7DgsHmXmXGClAF6ZFfxBnvcEnbUWd0eXQl7DYj0i2 uc47LmJQ8M77mvRJlabYka2x+peq20/7YIjDNqYncpqDHaeBv1i4o2/fdXdWjyWO7NIf xZiA== 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 b16-20020aa7c910000000b0051dd616a276si4075908edt.71.2023.07.12.00.47.35; Wed, 12 Jul 2023 00:47:57 -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 S231213AbjGLHOH (ORCPT + 99 others); Wed, 12 Jul 2023 03:14:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230263AbjGLHOG (ORCPT ); Wed, 12 Jul 2023 03:14:06 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 036EC1736 for ; Wed, 12 Jul 2023 00:14:04 -0700 (PDT) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id CEDF1606EE6FC; Wed, 12 Jul 2023 15:13:51 +0800 (CST) X-MD-Sfrom: kunyu@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li kunyu To: akpm@linux-foundation.org, zhou.kete@h3c.com, rppt@kernel.org, mgorman@techsingularity.net, zhao_lei1@hoperun.com, zhang.zhengming@h3c.com, surenb@google.com, xu.panda@zte.com.cn, wuchi.zero@gmail.com, Ilia.Gavrilov@infotecs.ru Cc: linux-kernel@vger.kernel.org, Li kunyu Subject: [PATCH] =?utf-8?q?kernel=3A_relay=3A_Remove_unnecessary_=E2=80=98NU?= =?utf-8?q?LL=E2=80=99_values_from_relay=5Fopen=5Fbuf?= Date: Fri, 14 Jul 2023 07:44:59 +0800 Message-Id: <20230713234459.2908-1-kunyu@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: 1771200134603956155 X-GMAIL-MSGID: 1771200134603956155 buf is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li kunyu --- kernel/relay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/relay.c b/kernel/relay.c index a80fa01042e9..83fe0325cde1 100644 --- a/kernel/relay.c +++ b/kernel/relay.c @@ -375,7 +375,7 @@ static struct dentry *relay_create_buf_file(struct rchan *chan, */ static struct rchan_buf *relay_open_buf(struct rchan *chan, unsigned int cpu) { - struct rchan_buf *buf = NULL; + struct rchan_buf *buf; struct dentry *dentry; if (chan->is_global)