Bluetooth: Add __init and __exit marks to RFCOMM
Those annotation save memory and space on the binary. __init code is discarded just after execute and __exit code is discarded if the module is built into the kernel image or unload of modules is not allowed. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
committed by
Marcel Holtmann
parent
f2b94bb9e0
commit
2f8362afcd
@@ -1152,7 +1152,7 @@ error:
|
||||
return err;
|
||||
}
|
||||
|
||||
void rfcomm_cleanup_sockets(void)
|
||||
void __exit rfcomm_cleanup_sockets(void)
|
||||
{
|
||||
debugfs_remove(rfcomm_sock_debugfs);
|
||||
|
||||
|
Reference in New Issue
Block a user