summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_core.c
diff options
context:
space:
mode:
authorMarcel Holtmann2012-02-22 12:06:43 +0100
committerJohan Hedberg2012-02-23 12:06:58 +0100
commit70c1f20b00495fd25b81be14b263d32648a3d629 (patch)
tree4c1d390aecda10582685f9d8501eddb74a1327f6 /net/bluetooth/hci_core.c
parentBluetooth: Fix two minor style issues in management code (diff)
downloadkernel-qcow2-linux-70c1f20b00495fd25b81be14b263d32648a3d629.tar.gz
kernel-qcow2-linux-70c1f20b00495fd25b81be14b263d32648a3d629.tar.xz
kernel-qcow2-linux-70c1f20b00495fd25b81be14b263d32648a3d629.zip
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/hci_core.c')
-rw-r--r--net/bluetooth/hci_core.c2
1 files changed, 1 insertions, 1 deletions
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,
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);