projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17fd08f
)
Bluetooth: Use hexadecimal notation for mask
author
Andrei Emeltchenko
<andrei.emeltchenko@intel.com>
Thu, 26 Nov 2015 14:49:33 +0000
(16:49 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 9 Dec 2015 23:51:49 +0000
(
00:51
+0100)
Using hexadecimal notation for mask makes code easier to read
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_h5.c
patch
|
blob
|
history
diff --git
a/drivers/bluetooth/hci_h5.c
b/drivers/bluetooth/hci_h5.c
index db039f2ce6554719556e7427775c246f3bb4f451..fc1a499bca95a53da683cf59f6004e243f53708f 100644
(file)
--- a/
drivers/bluetooth/hci_h5.c
+++ b/
drivers/bluetooth/hci_h5.c
@@
-317,7
+317,7
@@
static void h5_handle_internal_rx(struct hci_uart *hu)
h5_link_control(hu, conf_req, 3);
} else if (memcmp(data, conf_rsp, 2) == 0) {
if (H5_HDR_LEN(hdr) > 2)
- h5->tx_win = (data[2] & 7);
+ h5->tx_win = (data[2] &
0x0
7);
BT_DBG("Three-wire init complete. tx_win %u", h5->tx_win);
h5->state = H5_ACTIVE;
hci_uart_init_ready(hu);