Bluetooth: Use lmp_no_flush_capable where applicable
authorAndre Guedes <andre.guedes@openbossa.org>
Tue, 24 Jul 2012 18:03:53 +0000 (15:03 -0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 6 Aug 2012 18:02:57 +0000 (15:02 -0300)
This patch replaces all LMP_NO_FLUSH bit checking by the helper
macro lmp_no_flush_capable.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/hci_event.c

index 060780c40ba1b697bd0a0c2787f7f5483ea560b5..2d8761b8b19c636cd6dd1762c8fc31e2a32879c3 100644 (file)
@@ -522,7 +522,7 @@ static void hci_setup_event_mask(struct hci_dev *hdev)
        if (hdev->features[6] & LMP_EXT_INQ)
                events[5] |= 0x40; /* Extended Inquiry Result */
 
-       if (hdev->features[6] & LMP_NO_FLUSH)
+       if (lmp_no_flush_capable(hdev))
                events[7] |= 0x01; /* Enhanced Flush Complete */
 
        if (hdev->features[7] & LMP_LSTO)