Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp5639270rdb; Sun, 31 Dec 2023 09:46:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IF4OtpmebuG8V8096hQKXBouDygFQhB6pBe7B9W8ld/37/7g1TtMdR8R5s0/HhNNKYRqI7n X-Received: by 2002:a50:8d16:0:b0:553:dcc7:f797 with SMTP id s22-20020a508d16000000b00553dcc7f797mr6493201eds.56.1704044806752; Sun, 31 Dec 2023 09:46:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704044806; cv=none; d=google.com; s=arc-20160816; b=iPEMmbtBiTGNqohNfc4MNhRH0MIoD54M7T8GOM9S7pKAnkhB/U2pkQ3W0EuDfsa/Nu G3O7zLstUgBiWmZueXCZw2DmEqhU8LXOKnAZMdZ0q3xKrfB7gqPD3JxUejvkzcu0mrB3 OyyvVL0Uu7XU/eLKpY22SsO1lBhA831jEPh4zLExqUjjriokOI4dVemUmAgaq7+2HLaw dqY05g2RHc6q2B6NKSETmPSyzFfd1BEFtvFbP9mabuBBbxOJB3h04Wh6O8S/ZXpUdUKw gvebbXKj47zmPRZr6tPmcPnuoXfAS/36GQHzDFeWUrtizwMGclG1jWHOrLUPKgE0X+I7 eI6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=ivcaUFJUtR43CASnnIcHbXa+Hj+wpuJO6NIN7gtE0jQ=; fh=DdOJvwknMOETb7U5MhJXXB2PrP85TzaM/5h2KxSJnwo=; b=Y+du4f6fD/FoajXhHwrg2f3q5ftRN0BdXQAvzAIYgymhRabn7ItVkxR0ZOENe7HhDt ai2/9Drf7qOIWws0HGnQWxp1Of6umjWOEeM+RcFeqLc6I+RUoFrIUVHmTX6Vsw6ByQHm 3MXtqc5JSwirXHUog7iQGR1SxrdWuX129+E9iqCYQVLPZCa+4oR3lB8bQxVNzOD33Uep X3Ds+je4qKcYLugxqJWnBunYNP1tOX2ZV97FYakUeKIAwtwnGQyJcSQ5gcpC1jF1L64/ RsEuKH2nAAmq1BhasYr8g9qB6p23xstIwCj35b31yTDh67YVGtwYBfddAuEgq4pWriGq y8og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=kgAISiG5; spf=pass (google.com: domain of linux-kernel+bounces-13767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13767-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id r4-20020a50aac4000000b0055466fb458dsi8070003edc.171.2023.12.31.09.46.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Dec 2023 09:46:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=kgAISiG5; spf=pass (google.com: domain of linux-kernel+bounces-13767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13767-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 80AB51F21AFE for ; Sun, 31 Dec 2023 17:46:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E27369468; Sun, 31 Dec 2023 17:46:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b="kgAISiG5" X-Original-To: linux-kernel@vger.kernel.org Received: from mout.web.de (mout.web.de [212.227.15.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 20CBB8F48; Sun, 31 Dec 2023 17:46:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=web.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1704044770; x=1704649570; i=markus.elfring@web.de; bh=zNxLcIyTelDfgCWbRzOiNYP/OsCyug4PyGLRPHXHIgA=; h=X-UI-Sender-Class:Date:Subject:From:To:Cc:References: In-Reply-To; b=kgAISiG5TUD48eiMkvyLXJHBZaaqVgO1aqqr/bfgByJKmIxto6bfhEkQ4Jrih3eP bqYsXbC5BYj3XVyN78DyWZg9MMaJsTJ++hkaC1w2wDD3wHkZSo01HOC2kFBgkXyhf WrywTw1OhJrEtc29Z3zYyl6ximTGQ6YrJLMW+m1ANtdKggWvg+YLFHj5hK1l6P3Jd a8X4MHkZMVGt3dfsn/EV3z2/01W7xZj0x05yu4kdi7f5CWxzwTgLWTZ9boixJdO/h ovMITJwFeAlWP6FrTd5DWbJHclP571w0hXTFwKUrvfLsYHdQOSAzk6iwexJxEIqR6 QfdMFeW67zuZbhjmdQ== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.178.21] ([94.31.90.95]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MGxQV-1rOeqf0ukl-00Dtmh; Sun, 31 Dec 2023 18:46:10 +0100 Message-ID: <57779d2f-0d39-4c2e-8718-3c9242177013@web.de> Date: Sun, 31 Dec 2023 18:46:09 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PATCH 3/4] netlink: Delete an unnecessary variable initialisation in __netlink_kernel_create() Content-Language: en-GB From: Markus Elfring To: netdev@vger.kernel.org, kernel-janitors@vger.kernel.org, Anjali Kulkarni , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Kuniyuki Iwashima , Paolo Abeni , Simon Horman Cc: LKML References: <90679f69-951c-47b3-b86f-75fd9fde3da3@web.de> In-Reply-To: <90679f69-951c-47b3-b86f-75fd9fde3da3@web.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:LYJBemVScIDnkTHCBaOU7X3PN9jEiJKMRkwsrbqrrh1trsJmQbL Xkz3LO9XKgdMqnZds9v3GlwhFnfWk3nX7DW/qzr6U29o2sZlj3RjMMo1HWeIvTNmfQfwWT2 MRIDtjEgVlSHSqWN7kOw30XZYSOvDQL05WfCj/DDW6lJ6fZ1bYtPM+XMkw7l8Z0BhRVcJoK BmojJ6Yodgb75Ixa1fRUg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:gjC212gal3M=;oZQAD3kGRYWDqKtckJnzDSnm7wh kgi/6vhcQYFeUNX+m1Rhf7I1MlYO++FJv/bbCDUWXIsLAgALPtWMJuMAWZaMl+bzebt1E/Xhn Gog+AgirnC1dOgvh1pH+gvtu3xfNxZFaAT0n8/0nCi1Db/3XWH+Oh8NdZ97hJWALa0zH5tlBW FaPN8oANtJHjTPLMzRfj12Rxxm27Ao3vuleWQ7v0/HwclwnXQz631GNvIpgrnX56G/po9a4bl TamdEFNRVr0qt+Njk3ozT7wpas56mTV9+ajJb0Y6Q7DDle2yZl+8LliatC/iUp3lt/ON52b8G YJpUWe9hcQ5ZTWHDZgqC9GcXmIqny9MYQLbuH4iNjzyHwxAEBDDv88HB7bwIsY4RcHW1dbnRl WDfzWwFfHd7/Atsz4uBOxDXFVyw/1xlIaOtEBy+uXJzKt5vKGZ08U/ltU3RA9yDftLB2EAJct SSmKxvUsa4heza1Gx80kLGbbjoRGi6ESOHFFY/vXHCJfu9MWROUFjG4/nhnjZVbdWrfUN3uLw VYar5n+aFMCvqFAcoD8d3QIEShkD2QOnDQix0uZh1Adk2BJT+5kLL70h63IzJTousjDLey6O9 F9i+Sn67qkXhggNfzKwyIhvTHkXJ25AXXmNnOHUAR4mKxbHdOQAowf6MvM3bEr0i55x7broO8 lN68vF4BTG3udAPgR5viuhWGdBid/bDBjI79ZJ+rFP2xeTXlypSG23BNIemvvP9D1SwdXBcZ/ 1arQXkSKpa2tdsWjgNYW+KcNoVtfg3vUUbkZB8EIT3vpXjoEaLqHD2NlOHi3iJsyPl8ZKcS61 jh0zuxRRF9F00/O55JNdaAzZ5pQfE7LSLGu0RcWj17m/SRxC567Ogic2IMWa8r6g9vm63AraY A+0u5UHK9vtLwV3X571b6VWN8wpB4EnbXsb99gxuAXGrN1iujKvhMqSG5L+/YM10oex4MjfcV 0eHUTQ== From: Markus Elfring Date: Sun, 31 Dec 2023 17:45:00 +0100 The variable =E2=80=9Clisteners=E2=80=9D will eventually be set to an appr= opriate pointer a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring =2D-- net/netlink/af_netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index b71d9c21d15b..cfddc9c6a376 100644 =2D-- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c @@ -2018,7 +2018,7 @@ __netlink_kernel_create(struct net *net, int unit, s= truct module *module, struct socket *sock; struct sock *sk; struct netlink_sock *nlk; - struct listeners *listeners =3D NULL; + struct listeners *listeners; struct mutex *cb_mutex =3D cfg ? cfg->cb_mutex : NULL; unsigned int groups; =2D- 2.43.0