summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/hci_h5.c
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2015-11-19 15:47:38 +0100
committerMarcel Holtmann <marcel@holtmann.org>2015-11-19 17:50:33 +0100
commite9d63767258753f28920d954712806a061b69547 (patch)
tree73a798ba798c11a9ea4569d3ffd6b54dbd5b9c74 /drivers/bluetooth/hci_h5.c
parentBluetooth: Fix mask for H5 header len (diff)
downloadlinux-e9d63767258753f28920d954712806a061b69547.tar.xz
linux-e9d63767258753f28920d954712806a061b69547.zip
Bluetooth: Use hex notation for mask
This makes it easier to read and makes code consistent. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/hci_h5.c')
-rw-r--r--drivers/bluetooth/hci_h5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bluetooth/hci_h5.c b/drivers/bluetooth/hci_h5.c
index 012248efaf6f..db039f2ce655 100644
--- a/drivers/bluetooth/hci_h5.c
+++ b/drivers/bluetooth/hci_h5.c
@@ -119,7 +119,7 @@ static u8 h5_cfg_field(struct h5 *h5)
u8 field = 0;
/* Sliding window size (first 3 bits) */
- field |= (h5->tx_win & 7);
+ field |= (h5->tx_win & 0x07);
return field;
}