Skip to content

Commit

Permalink
lapb: moved export of lapb_register.
Browse files Browse the repository at this point in the history
The EXPORT_SYMBOL for lapb_register was next to a different function.
Moved it to the right place.

Signed-off-by: Jeremy Sowden <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
a3a3el authored and davem330 committed Jun 16, 2019
1 parent 1718132 commit 4201c92
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/lapb/lapb_iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -167,6 +165,7 @@ int lapb_register(struct net_device *dev,
write_unlock_bh(&lapb_list_lock);
return rc;
}
EXPORT_SYMBOL(lapb_register);

int lapb_unregister(struct net_device *dev)
{
Expand Down

0 comments on commit 4201c92

Please sign in to comment.