aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-02-22 06:06:43 -0500
committerJohan Hedberg <johan.hedberg@intel.com>2012-02-23 06:06:58 -0500
commit70c1f20b00495fd25b81be14b263d32648a3d629 (patch)
tree4c1d390aecda10582685f9d8501eddb74a1327f6 /net/bluetooth
parente5f0e151426bd83e4852a7a150fc6ad8ee349e69 (diff)
Bluetooth: Fix two minor style issues in HCI code
WARNING: min() should probably be min_t(__u16, scb->expect, count) + len = min(scb->expect, (__u16)count); WARNING: Statements terminations use 1 semicolon + INIT_LIST_HEAD(&conn->chan_list);; Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/hci_conn.c2
-rw-r--r--net/bluetooth/hci_core.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index 3c68e606d5e5..947172bf1621 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -402,7 +402,7 @@ struct hci_conn *hci_conn_add(struct hci_dev *hdev, int type, bdaddr_t *dst)
402 402
403 skb_queue_head_init(&conn->data_q); 403 skb_queue_head_init(&conn->data_q);
404 404
405 INIT_LIST_HEAD(&conn->chan_list);; 405 INIT_LIST_HEAD(&conn->chan_list);
406 406
407 INIT_DELAYED_WORK(&conn->disc_work, hci_conn_timeout); 407 INIT_DELAYED_WORK(&conn->disc_work, hci_conn_timeout);
408 setup_timer(&conn->idle_timer, hci_conn_idle, (unsigned long)conn); 408 setup_timer(&conn->idle_timer, hci_conn_idle, (unsigned long)conn);
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index 9d199494bd65..e1dadeea4c2f 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -1957,7 +1957,7 @@ static int hci_reassembly(struct hci_dev *hdev, int type, void *data,
1957 1957
1958 while (count) { 1958 while (count) {
1959 scb = (void *) skb->cb; 1959 scb = (void *) skb->cb;
1960 len = min(scb->expect, (__u16)count); 1960 len = min_t(__u16, scb->expect, count);
1961 1961
1962 memcpy(skb_put(skb, len), data, len); 1962 memcpy(skb_put(skb, len), data, len);
1963 1963