Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58aac468 authored by Szymon Janc's avatar Szymon Janc Committed by Gustavo Padovan
Browse files

Bluetooth: Do not use assignments in IF conditions



Fix checkpatch warnings concerning assignments in if conditions.

Signed-off-by: default avatarSzymon Janc <szymon.janc@tieto.com>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent 17f09a7e
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -235,10 +235,13 @@ 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)) {
		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) {
			hdr = skb_put(nskb, 2);