Bluetooth: Remove unneeded parenthesis around MSG_OOB
Subsystems (2)
Marcel Holtmann
maintainerPATCH 1/1 Bluetooth: Remove unneeded parenthesis around MSG_OOB
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 <[email protected]>
--- net/bluetooth/af_bluetooth.c | 2 +- net/bluetooth/hci_sock.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
net/bluetooth/af_bluetooth.c +1 -1
@@ -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);
net/bluetooth/hci_sock.c +1 -1
@@ -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 )
Signature · 1 line
2.4.3
Johan Hedberg
AppliedHi Marcel,
Quoted 8 lines · Marcel Holtmann
There are two checks that are still using (
MSG_OOB) instead of justMSG_OOBand so lets just fix them.Signed-off-by Marcel Holtmann <[email protected]>--- net/bluetooth/af_bluetooth.c | 2 +- net/bluetooth/hci_sock.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Applied to bluetooth-next. Thanks.
Johan