From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kirill Tkhai Subject: [PATCH 1/3] net: Remove inet_exit_net() Date: Thu, 20 Sep 2018 12:11:31 +0300 Message-ID: <153743468053.21312.12479798720931338461.stgit@localhost.localdomain> References: <153743451940.21312.15708795592586962785.stgit@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: davem@davemloft.net, xiyou.wangcong@gmail.com, yoshfuji@linux-ipv6.org, ktkhai@virtuozzo.com, avagin@virtuozzo.com, edumazet@google.com, ebiederm@xmission.com, netdev@vger.kernel.org Return-path: Received: from mail-eopbgr30112.outbound.protection.outlook.com ([40.107.3.112]:56384 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726903AbeITOyH (ORCPT ); Thu, 20 Sep 2018 10:54:07 -0400 In-Reply-To: <153743451940.21312.15708795592586962785.stgit@localhost.localdomain> Sender: netdev-owner@vger.kernel.org List-ID: This function does nothing, and since ops_exit_list() checks for NULL ->exit method, we do not need stub here. Signed-off-by: Kirill Tkhai --- net/ipv4/af_inet.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index 1fbe2f815474..f4ecbe0aaf1a 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c @@ -1821,13 +1821,8 @@ static __net_init int inet_init_net(struct net *net) return 0; } -static __net_exit void inet_exit_net(struct net *net) -{ -} - static __net_initdata struct pernet_operations af_inet_ops = { .init = inet_init_net, - .exit = inet_exit_net, }; static int __init init_inet_pernet_ops(void)