summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorGustavo F. Padovan <gustavo@las.ic.unicamp.br>2009-04-20 01:31:07 -0300
committerMarcel Holtmann <marcel@holtmann.org>2009-05-09 12:17:08 -0700
commitc14927cedce6604d4e4dd48057e7a39e97ddb069 (patch)
tree72e5bdbcbeee9ee1b03ba7f9eaaf59e7a2071e3b /net
parent898f2c9f963ea06f4c7c823a040ba5954973f315 (diff)
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')
-rw-r--r--net/bluetooth/l2cap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c
index ff1744e34cd8..c0c091533bd0 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) {