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>
This commit is contained in:
Marcel Holtmann
2012-02-22 12:06:43 +01:00
committed by Johan Hedberg
parent e5f0e15142
commit 70c1f20b00
2 changed files with 2 additions and 2 deletions

View File

@@ -1957,7 +1957,7 @@ static int hci_reassembly(struct hci_dev *hdev, int type, void *data,
while (count) {
scb = (void *) skb->cb;
len = min(scb->expect, (__u16)count);
len = min_t(__u16, scb->expect, count);
memcpy(skb_put(skb, len), data, len);