mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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>
This commit is contained in:
parent
4eb9eda6ba
commit
ff8424be8c
1 changed files with 3 additions and 13 deletions
|
@ -2264,16 +2264,6 @@ static struct packet_type iucv_packet_type = {
|
||||||
.func = afiucv_hs_rcv,
|
.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)
|
static int __init afiucv_init(void)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
|
@ -2300,7 +2290,7 @@ static int __init afiucv_init(void)
|
||||||
goto out_proto;
|
goto out_proto;
|
||||||
|
|
||||||
if (pr_iucv) {
|
if (pr_iucv) {
|
||||||
err = afiucv_iucv_init();
|
err = pr_iucv->iucv_register(&af_iucv_handler, 0);
|
||||||
if (err)
|
if (err)
|
||||||
goto out_sock;
|
goto out_sock;
|
||||||
}
|
}
|
||||||
|
@ -2314,7 +2304,7 @@ static int __init afiucv_init(void)
|
||||||
|
|
||||||
out_notifier:
|
out_notifier:
|
||||||
if (pr_iucv)
|
if (pr_iucv)
|
||||||
afiucv_iucv_exit();
|
pr_iucv->iucv_unregister(&af_iucv_handler, 0);
|
||||||
out_sock:
|
out_sock:
|
||||||
sock_unregister(PF_IUCV);
|
sock_unregister(PF_IUCV);
|
||||||
out_proto:
|
out_proto:
|
||||||
|
@ -2326,7 +2316,7 @@ out:
|
||||||
static void __exit afiucv_exit(void)
|
static void __exit afiucv_exit(void)
|
||||||
{
|
{
|
||||||
if (pr_iucv)
|
if (pr_iucv)
|
||||||
afiucv_iucv_exit();
|
pr_iucv->iucv_unregister(&af_iucv_handler, 0);
|
||||||
|
|
||||||
unregister_netdevice_notifier(&afiucv_netdev_notifier);
|
unregister_netdevice_notifier(&afiucv_netdev_notifier);
|
||||||
dev_remove_pack(&iucv_packet_type);
|
dev_remove_pack(&iucv_packet_type);
|
||||||
|
|
Loading…
Add table
Reference in a new issue