From: Andre Guedes Date: Tue, 24 Jul 2012 18:03:53 +0000 (-0300) Subject: Bluetooth: Use lmp_no_flush_capable where applicable X-Git-Tag: MMI-PSA29.97-13-9~15795^2~42^2~37^2~30 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c58e810eb0916f9197378435af72136fb7c97f43;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Gustavo Padovan --- diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 060780c40ba1..2d8761b8b19c 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)