Bluetooth: Test 'count' value before enter the loop
authorGustavo F. Padovan <padovan@profusion.mobi>
Sat, 24 Jul 2010 04:34:54 +0000 (01:34 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 27 Jul 2010 19:33:49 +0000 (12:33 -0700)
commitda5f6c37eee040775997191d1a1bc91c0c1e51eb
tree91c50ab042076832cba9542e594b7f3a730c7892
parent0bbdf6cba0fb730ae2f2cfd5ead3d1e2e5498ddc
Bluetooth: Test 'count' value before enter the loop

Testing first we avoid enter the loop when count = 0.

Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_core.c