aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
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
parent138d22ef14bf00e44de7885cd03f0c3b6ac168f5 (diff)
Bluetooth: fix errors reported by checkpatch.pl
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/l2cap_core.c10
-rw-r--r--net/bluetooth/l2cap_sock.c30
2 files changed, 18 insertions, 22 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index bd3136710360..efcef0dc1259 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -1671,10 +1671,6 @@ done:
1671 break; 1671 break;
1672 } 1672 }
1673 1673
1674 /* FIXME: Need actual value of the flush timeout */
1675 //if (flush_to != L2CAP_DEFAULT_FLUSH_TO)
1676 // l2cap_add_conf_opt(&ptr, L2CAP_CONF_FLUSH_TO, 2, pi->flush_to);
1677
1678 req->dcid = cpu_to_le16(pi->dcid); 1674 req->dcid = cpu_to_le16(pi->dcid);
1679 req->flags = cpu_to_le16(0); 1675 req->flags = cpu_to_le16(0);
1680 1676
@@ -2501,7 +2497,7 @@ static inline int l2cap_information_rsp(struct l2cap_conn *conn, struct l2cap_cm
2501 return 0; 2497 return 0;
2502} 2498}
2503 2499
2504static int inline l2cap_check_conn_param(u16 min, u16 max, u16 latency, 2500static inline int l2cap_check_conn_param(u16 min, u16 max, u16 latency,
2505 u16 to_multiplier) 2501 u16 to_multiplier)
2506{ 2502{
2507 u16 max_latency; 2503 u16 max_latency;
@@ -2539,8 +2535,8 @@ static inline int l2cap_conn_param_update_req(struct l2cap_conn *conn,
2539 return -EPROTO; 2535 return -EPROTO;
2540 2536
2541 req = (struct l2cap_conn_param_update_req *) data; 2537 req = (struct l2cap_conn_param_update_req *) data;
2542 min = __le16_to_cpu(req->min); 2538 min = __le16_to_cpu(req->min);
2543 max = __le16_to_cpu(req->max); 2539 max = __le16_to_cpu(req->max);
2544 latency = __le16_to_cpu(req->latency); 2540 latency = __le16_to_cpu(req->latency);
2545 to_multiplier = __le16_to_cpu(req->to_multiplier); 2541 to_multiplier = __le16_to_cpu(req->to_multiplier);
2546 2542
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}