Bluetooth: fix errors reported by checkpatch.pl
authorGustavo F. Padovan <padovan@profusion.mobi>
Thu, 17 Feb 2011 22:16:55 +0000 (19:16 -0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Thu, 17 Feb 2011 22:16:55 +0000 (19:16 -0300)
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/l2cap_core.c
net/bluetooth/l2cap_sock.c

index bd313671036039793d1564b73f993390abecbe94..efcef0dc12599127344417d3db993078616dbc57 100644 (file)
@@ -1671,10 +1671,6 @@ done:
                break;
        }
 
-       /* FIXME: Need actual value of the flush timeout */
-       //if (flush_to != L2CAP_DEFAULT_FLUSH_TO)
-       //   l2cap_add_conf_opt(&ptr, L2CAP_CONF_FLUSH_TO, 2, pi->flush_to);
-
        req->dcid  = cpu_to_le16(pi->dcid);
        req->flags = cpu_to_le16(0);
 
@@ -2501,7 +2497,7 @@ static inline int l2cap_information_rsp(struct l2cap_conn *conn, struct l2cap_cm
        return 0;
 }
 
-static int inline l2cap_check_conn_param(u16 min, u16 max, u16 latency,
+static inline int l2cap_check_conn_param(u16 min, u16 max, u16 latency,
                                                        u16 to_multiplier)
 {
        u16 max_latency;
@@ -2539,8 +2535,8 @@ static inline int l2cap_conn_param_update_req(struct l2cap_conn *conn,
                return -EPROTO;
 
        req = (struct l2cap_conn_param_update_req *) data;
-       min             = __le16_to_cpu(req->min);
-       max             = __le16_to_cpu(req->max);
+       min             = __le16_to_cpu(req->min);
+       max             = __le16_to_cpu(req->max);
        latency         = __le16_to_cpu(req->latency);
        to_multiplier   = __le16_to_cpu(req->to_multiplier);
 
index 484e717da79e1e86bdbc156d66b33c21a2e09e8d..fc85e7ae33c732fe729ee76db3d8df03e0e5d572 100644 (file)
@@ -1127,30 +1127,30 @@ static const struct net_proto_family l2cap_sock_family_ops = {
 
 int __init l2cap_init_sockets(void)
 {
-       int err;
+       int err;
 
-       err = proto_register(&l2cap_proto, 0);
-       if (err < 0)
-               return err;
+       err = proto_register(&l2cap_proto, 0);
+       if (err < 0)
+               return err;
 
-       err = bt_sock_register(BTPROTO_L2CAP, &l2cap_sock_family_ops);
-       if (err < 0)
-               goto error;
+       err = bt_sock_register(BTPROTO_L2CAP, &l2cap_sock_family_ops);
+       if (err < 0)
+               goto error;
 
-       BT_INFO("L2CAP socket layer initialized");
+       BT_INFO("L2CAP socket layer initialized");
 
-       return 0;
+       return 0;
 
 error:
-       BT_ERR("L2CAP socket registration failed");
-       proto_unregister(&l2cap_proto);
-       return err;
+       BT_ERR("L2CAP socket registration failed");
+       proto_unregister(&l2cap_proto);
+       return err;
 }
 
 void l2cap_cleanup_sockets(void)
 {
-       if (bt_sock_unregister(BTPROTO_L2CAP) < 0)
-               BT_ERR("L2CAP socket unregistration failed");
+       if (bt_sock_unregister(BTPROTO_L2CAP) < 0)
+               BT_ERR("L2CAP socket unregistration failed");
 
-       proto_unregister(&l2cap_proto);
+       proto_unregister(&l2cap_proto);
 }