Skip to content

Commit

Permalink
Bluetooth: Do not use assignments in IF conditions
Browse files Browse the repository at this point in the history
Fix checkpatch warnings concerning assignments in if conditions.

Signed-off-by: Szymon Janc <[email protected]>
Signed-off-by: Gustavo F. Padovan <[email protected]>
  • Loading branch information
Szymon Janc authored and Gustavo F. Padovan committed Mar 31, 2011
1 parent 17f09a7 commit 58aac46
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions net/bluetooth/cmtp/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,12 @@ static void cmtp_process_transmit(struct cmtp_session *session)

size = min_t(uint, ((tail < 258) ? (tail - 2) : (tail - 3)), skb->len);

if ((scb->id < 0) && ((scb->id = cmtp_alloc_block_id(session)) < 0)) {
skb_queue_head(&session->transmit, skb);
break;
if (scb->id < 0) {
scb->id = cmtp_alloc_block_id(session);
if (scb->id < 0) {
skb_queue_head(&session->transmit, skb);
break;
}
}

if (size < 256) {
Expand Down

0 comments on commit 58aac46

Please sign in to comment.