diff options
author | Gustavo F. Padovan <gustavo@las.ic.unicamp.br> | 2009-04-20 01:31:07 -0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-06-08 14:50:00 +0200 |
commit | 589d27464846c7cb758f93d9ee380c8ff05a161c (patch) | |
tree | cca78e805ba371fb53043ff9f0ceed5c02c25184 /net/bluetooth/l2cap.c | |
parent | 8db4dc46dcff7568896aa1eae4bd07620ce3dd93 (diff) | |
download | kernel_samsung_tuna-589d27464846c7cb758f93d9ee380c8ff05a161c.zip kernel_samsung_tuna-589d27464846c7cb758f93d9ee380c8ff05a161c.tar.gz kernel_samsung_tuna-589d27464846c7cb758f93d9ee380c8ff05a161c.tar.bz2 |
Bluetooth: Use macro for L2CAP hint mask on receiving config request
Using the L2CAP_CONF_HINT macro is easier to understand than using a
hardcoded 0x80 value.
Signed-off-by: Gustavo F. Padovan <gustavo@las.ic.unicamp.br>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/l2cap.c')
-rw-r--r-- | net/bluetooth/l2cap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c index ff1744e..c0c0915 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c @@ -1739,7 +1739,7 @@ static int l2cap_parse_conf_req(struct sock *sk, void *data) while (len >= L2CAP_CONF_OPT_SIZE) { len -= l2cap_get_conf_opt(&req, &type, &olen, &val); - hint = type & 0x80; + hint = type & L2CAP_CONF_HINT; type &= 0x7f; switch (type) { |