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

Commit b75b2eed authored by Jan Kiszka's avatar Jan Kiszka Committed by David S. Miller
Browse files

CAPI: Drop handle_minor_recv from capinc_tty_write



Sending a message down the CAPI stack may trigger the reception of an
answer, but this will go through capi_recv_message and call
handle_minor_recv from there. There is no need to walk the receive queue
on capinc_tty_write.

Signed-off-by: default avatarJan Kiszka <jan.kiszka@web.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a84fdf41
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -1104,7 +1104,6 @@ static int capinc_tty_write(struct tty_struct *tty,
	skb_queue_tail(&mp->outqueue, skb);
	skb_queue_tail(&mp->outqueue, skb);
	mp->outbytes += skb->len;
	mp->outbytes += skb->len;
	(void)handle_minor_send(mp);
	(void)handle_minor_send(mp);
	(void)handle_minor_recv(mp);
	spin_unlock_irqrestore(&workaround_lock, flags);
	spin_unlock_irqrestore(&workaround_lock, flags);
	return count;
	return count;
}
}