diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2021-08-09 10:30:48 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-09 10:13:32 +0100 |
commit | ff8424be8ce326e046982768bd20a245714e05b6 (patch) | |
tree | 56eddf038a8770825e6a0b2d67565a1a4d773168 /net | |
parent | 4eb9eda6ba64114d98827e2870e024d5ab7cd35b (diff) | |
download | linux-stable-ff8424be8ce326e046982768bd20a245714e05b6.tar.gz linux-stable-ff8424be8ce326e046982768bd20a245714e05b6.tar.bz2 linux-stable-ff8424be8ce326e046982768bd20a245714e05b6.zip |
net/af_iucv: remove wrappers around iucv (de-)registration
These wrappers are just unnecessary obfuscation.
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/iucv/af_iucv.c | 16 |
1 files 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 @@ out: 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); |