summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorJeremy Sowden <jeremy@azazel.net>2019-06-16 13:41:59 +0300
committerDavid S. Miller <davem@davemloft.net>2019-06-17 00:25:01 +0300
commit4201c9260a8d3c4ef238e51692a7e9b4e1e29efe (patch)
tree610752420f416761ad3ef641fc0dc313db95a0a5 /net/lapb/lapb_iface.c
parent1718132587e8c73c9a6fd7cfbf0fa9f14559c134 (diff)
downloadlinux-4201c9260a8d3c4ef238e51692a7e9b4e1e29efe.tar.xz
lapb: moved export of lapb_register.
The EXPORT_SYMBOL for lapb_register was next to a different function. Moved it to the right place. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/lapb/lapb_iface.c')
-rw-r--r--net/lapb/lapb_iface.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/lapb/lapb_iface.c b/net/lapb/lapb_iface.c
index 03f0cd872dce..600d754a1700 100644
--- a/net/lapb/lapb_iface.c
+++ b/net/lapb/lapb_iface.c
@@ -68,7 +68,6 @@ static void __lapb_remove_cb(struct lapb_cb *lapb)
lapb_put(lapb);
}
}
-EXPORT_SYMBOL(lapb_register);
/*
* Add a socket to the bound sockets list.
@@ -115,7 +114,6 @@ static struct lapb_cb *lapb_create_cb(void)
{
struct lapb_cb *lapb = kzalloc(sizeof(*lapb), GFP_ATOMIC);
-
if (!lapb)
goto out;
@@ -167,6 +165,7 @@ out:
write_unlock_bh(&lapb_list_lock);
return rc;
}
+EXPORT_SYMBOL(lapb_register);
int lapb_unregister(struct net_device *dev)
{