Bluetooth: Use lmp_no_flush_capable where applicable

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sat Sep 29 10:59:21 EDT 2012


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=c58e810eb0916f9197378435af72136fb7c97f43
Commit:     c58e810eb0916f9197378435af72136fb7c97f43
Parent:     999dcd10a88243ab304966a506b4975ce5f1e3bb
Author:     Andre Guedes <andre.guedes at openbossa.org>
AuthorDate: Tue Jul 24 15:03:53 2012 -0300
Committer:  Gustavo Padovan <gustavo.padovan at collabora.co.uk>
CommitDate: Mon Aug 6 15:02:57 2012 -0300

    Bluetooth: Use lmp_no_flush_capable where applicable
    
    This patch replaces all LMP_NO_FLUSH bit checking by the helper
    macro lmp_no_flush_capable.
    
    Signed-off-by: Andre Guedes <andre.guedes at openbossa.org>
    Signed-off-by: Gustavo Padovan <gustavo.padovan at collabora.co.uk>
---
 net/bluetooth/hci_event.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 060780c..2d8761b 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -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)



More information about the linux-mtd-cvs mailing list