diff options
author | Andrei Emeltchenko <andrei.emeltchenko@nokia.com> | 2011-01-11 10:20:20 -0500 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-02-07 22:40:08 -0500 |
commit | 5a08eccedaa1e12b74cf3afea9e11a9aefc29f73 (patch) | |
tree | 9bc0f14ce8785a32cf1d4cf4ebf1c297312fada8 /net/bluetooth/af_bluetooth.c | |
parent | 17fa4b9dff72fb3a1a68cc80caf98fc941d2b8b3 (diff) |
Bluetooth: Do not use assignments in IF conditions
Fix checkpatch warnings concerning assignments in if conditions.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@nokia.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/af_bluetooth.c')
-rw-r--r-- | net/bluetooth/af_bluetooth.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/bluetooth/af_bluetooth.c b/net/bluetooth/af_bluetooth.c index c4cf3f595004..a6732b576a52 100644 --- a/net/bluetooth/af_bluetooth.c +++ b/net/bluetooth/af_bluetooth.c | |||
@@ -240,7 +240,8 @@ int bt_sock_recvmsg(struct kiocb *iocb, struct socket *sock, | |||
240 | if (flags & (MSG_OOB)) | 240 | if (flags & (MSG_OOB)) |
241 | return -EOPNOTSUPP; | 241 | return -EOPNOTSUPP; |
242 | 242 | ||
243 | if (!(skb = skb_recv_datagram(sk, flags, noblock, &err))) { | 243 | skb = skb_recv_datagram(sk, flags, noblock, &err); |
244 | if (!skb) { | ||
244 | if (sk->sk_shutdown & RCV_SHUTDOWN) | 245 | if (sk->sk_shutdown & RCV_SHUTDOWN) |
245 | return 0; | 246 | return 0; |
246 | return err; | 247 | return err; |
@@ -323,7 +324,8 @@ int bt_sock_stream_recvmsg(struct kiocb *iocb, struct socket *sock, | |||
323 | if (copied >= target) | 324 | if (copied >= target) |
324 | break; | 325 | break; |
325 | 326 | ||
326 | if ((err = sock_error(sk)) != 0) | 327 | err = sock_error(sk); |
328 | if (err) | ||
327 | break; | 329 | break; |
328 | if (sk->sk_shutdown & RCV_SHUTDOWN) | 330 | if (sk->sk_shutdown & RCV_SHUTDOWN) |
329 | break; | 331 | break; |