From: Karsten Graul <kgraul@linux.ibm.com>
To: David Miller <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>
Cc: netdev@vger.kernel.org, linux-s390@vger.kernel.org,
Heiko Carstens <hca@linux.ibm.com>,
Julian Wiedmann <jwi@linux.ibm.com>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Subject: [PATCH net-next 3/5] net/af_iucv: remove wrappers around iucv (de-)registration
Date: Mon, 9 Aug 2021 10:30:48 +0200 [thread overview]
Message-ID: <20210809083050.2328336-4-kgraul@linux.ibm.com> (raw)
In-Reply-To: <20210809083050.2328336-1-kgraul@linux.ibm.com>
From: Julian Wiedmann <jwi@linux.ibm.com>
These wrappers are just unnecessary obfuscation.
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
---
net/iucv/af_iucv.c | 16 +++-------------
1 file changed, 3 insertions(+), 13 deletions(-)
diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c
index 4bff26f7faff..18316ee3c692 100644
--- a/net/iucv/af_iucv.c
+++ b/net/iucv/af_iucv.c
@@ -2264,16 +2264,6 @@ static struct packet_type iucv_packet_type = {
.func = afiucv_hs_rcv,
};
-static int afiucv_iucv_init(void)
-{
- return pr_iucv->iucv_register(&af_iucv_handler, 0);
-}
-
-static void afiucv_iucv_exit(void)
-{
- pr_iucv->iucv_unregister(&af_iucv_handler, 0);
-}
-
static int __init afiucv_init(void)
{
int err;
@@ -2300,7 +2290,7 @@ static int __init afiucv_init(void)
goto out_proto;
if (pr_iucv) {
- err = afiucv_iucv_init();
+ err = pr_iucv->iucv_register(&af_iucv_handler, 0);
if (err)
goto out_sock;
}
@@ -2314,7 +2304,7 @@ static int __init afiucv_init(void)
out_notifier:
if (pr_iucv)
- afiucv_iucv_exit();
+ pr_iucv->iucv_unregister(&af_iucv_handler, 0);
out_sock:
sock_unregister(PF_IUCV);
out_proto:
@@ -2326,7 +2316,7 @@ static int __init afiucv_init(void)
static void __exit afiucv_exit(void)
{
if (pr_iucv)
- afiucv_iucv_exit();
+ pr_iucv->iucv_unregister(&af_iucv_handler, 0);
unregister_netdevice_notifier(&afiucv_netdev_notifier);
dev_remove_pack(&iucv_packet_type);
--
2.25.1
next prev parent reply other threads:[~2021-08-09 8:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-09 8:30 [PATCH net-next 0/5] net/iucv: updates 2021-08-09 Karsten Graul
2021-08-09 8:30 ` [PATCH net-next 1/5] net/af_iucv: support drop monitoring Karsten Graul
2021-08-09 8:30 ` [PATCH net-next 2/5] net/af_iucv: clean up a try_then_request_module() Karsten Graul
2021-08-09 8:30 ` Karsten Graul [this message]
2021-08-09 8:30 ` [PATCH net-next 4/5] net/iucv: get rid of register asm usage Karsten Graul
2021-08-09 8:30 ` [PATCH net-next 5/5] net/iucv: Replace deprecated CPU-hotplug functions Karsten Graul
2021-08-09 9:20 ` [PATCH net-next 0/5] net/iucv: updates 2021-08-09 patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210809083050.2328336-4-kgraul@linux.ibm.com \
--to=kgraul@linux.ibm.com \
--cc=bigeasy@linutronix.de \
--cc=davem@davemloft.net \
--cc=hca@linux.ibm.com \
--cc=jwi@linux.ibm.com \
--cc=kuba@kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox