aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/l2cap_sock.c
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-02-17 17:16:55 -0500
committerGustavo F. Padovan <padovan@profusion.mobi>2011-02-17 17:16:55 -0500
commite2174ca430ec52375a02ed20859aeceb0d455b72 (patch)
treea5d99eb39c9e520d2b3f5f4b75c3b58f99fa789d /net/bluetooth/l2cap_sock.c
parent138d22ef14bf00e44de7885cd03f0c3b6ac168f5 (diff)
Bluetooth: fix errors reported by checkpatch.pl
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/l2cap_sock.c')
-rw-r--r--net/bluetooth/l2cap_sock.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/net/bluetooth/l2cap_sock.c b/net/bluetooth/l2cap_sock.c
index 484e717da79e..fc85e7ae33c7 100644
--- a/net/bluetooth/l2cap_sock.c
+++ b/net/bluetooth/l2cap_sock.c
@@ -1127,30 +1127,30 @@ static const struct net_proto_family l2cap_sock_family_ops = {
1127 1127
1128int __init l2cap_init_sockets(void) 1128int __init l2cap_init_sockets(void)
1129{ 1129{
1130 int err; 1130 int err;
1131 1131
1132 err = proto_register(&l2cap_proto, 0); 1132 err = proto_register(&l2cap_proto, 0);
1133 if (err < 0) 1133 if (err < 0)
1134 return err; 1134 return err;
1135 1135
1136 err = bt_sock_register(BTPROTO_L2CAP, &l2cap_sock_family_ops); 1136 err = bt_sock_register(BTPROTO_L2CAP, &l2cap_sock_family_ops);
1137 if (err < 0) 1137 if (err < 0)
1138 goto error; 1138 goto error;
1139 1139
1140 BT_INFO("L2CAP socket layer initialized"); 1140 BT_INFO("L2CAP socket layer initialized");
1141 1141
1142 return 0; 1142 return 0;
1143 1143
1144error: 1144error:
1145 BT_ERR("L2CAP socket registration failed"); 1145 BT_ERR("L2CAP socket registration failed");
1146 proto_unregister(&l2cap_proto); 1146 proto_unregister(&l2cap_proto);
1147 return err; 1147 return err;
1148} 1148}
1149 1149
1150void l2cap_cleanup_sockets(void) 1150void l2cap_cleanup_sockets(void)
1151{ 1151{
1152 if (bt_sock_unregister(BTPROTO_L2CAP) < 0) 1152 if (bt_sock_unregister(BTPROTO_L2CAP) < 0)
1153 BT_ERR("L2CAP socket unregistration failed"); 1153 BT_ERR("L2CAP socket unregistration failed");
1154 1154
1155 proto_unregister(&l2cap_proto); 1155 proto_unregister(&l2cap_proto);
1156} 1156}