Skip to content

Commit

Permalink
Bluetooth: Remove unneeded parenthesis around MSG_OOB
Browse files Browse the repository at this point in the history
There are two checks that are still using (MSG_OOB) instead of just
MSG_OOB and so lets just fix them.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
  • Loading branch information
Marcel Holtmann authored and Johan Hedberg committed Oct 26, 2015
1 parent 1da5537 commit d94a610
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/bluetooth/af_bluetooth.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ int bt_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,

BT_DBG("sock %p sk %p len %zu", sock, sk, len);

if (flags & (MSG_OOB))
if (flags & MSG_OOB)
return -EOPNOTSUPP;

skb = skb_recv_datagram(sk, flags, noblock, &err);
Expand Down
2 changes: 1 addition & 1 deletion net/bluetooth/hci_sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ static int hci_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,

BT_DBG("sock %p, sk %p", sock, sk);

if (flags & (MSG_OOB))
if (flags & MSG_OOB)
return -EOPNOTSUPP;

if (sk->sk_state == BT_CLOSED)
Expand Down

0 comments on commit d94a610

Please sign in to comment.